Class Redispatcher
java.lang.Object
com.swiftmq.swiftlet.queue.MessageProcessor
com.swiftmq.impl.queue.standard.cluster.Redispatcher
- All Implemented Interfaces:
com.swiftmq.swiftlet.threadpool.AsyncTask, Runnable
public class Redispatcher
extends com.swiftmq.swiftlet.queue.MessageProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionRedispatcher(SwiftletContext ctx, String sourceQueueName, String targetQueueName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid()voidprocessException(Exception exception) voidprocessMessage(com.swiftmq.swiftlet.queue.MessageEntry messageEntry) voidrun()voidstart()voidstop()toString()Methods inherited from class com.swiftmq.swiftlet.queue.MessageProcessor
createBulkBuffer, getBulkBuffer, getCurrentBulkSize, getMaxBulkSize, getReceiverId, getRegistrationId, getRegistrationTime, getSelector, getTimeout, getTransactionId, getViewId, isAutoCommit, isBulkMode, processMessages, reset, setAutoCommit, setBulkMode, setCurrentBulkSize, setReceiverId, setRegistrationId, setRegistrationTime, setTransactionId, setViewId
-
Constructor Details
-
Redispatcher
public Redispatcher(SwiftletContext ctx, String sourceQueueName, String targetQueueName) throws Exception - Throws:
Exception
-
-
Method Details
-
start
-
getDescription
- Specified by:
getDescriptionin interfacecom.swiftmq.swiftlet.threadpool.AsyncTask- Overrides:
getDescriptionin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
getDispatchToken
- Specified by:
getDispatchTokenin interfacecom.swiftmq.swiftlet.threadpool.AsyncTask- Overrides:
getDispatchTokenin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
isValid
public boolean isValid() -
processException
- Specified by:
processExceptionin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
processMessage
public void processMessage(com.swiftmq.swiftlet.queue.MessageEntry messageEntry) - Specified by:
processMessagein classcom.swiftmq.swiftlet.queue.MessageProcessor
-
run
-
stop
public void stop()- Specified by:
stopin interfacecom.swiftmq.swiftlet.threadpool.AsyncTask- Overrides:
stopin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
toString
-