Class AsyncMessageProcessor
java.lang.Object
com.swiftmq.swiftlet.queue.MessageProcessor
com.swiftmq.impl.jms.standard.v630.AsyncMessageProcessor
- All Implemented Interfaces:
com.swiftmq.swiftlet.threadpool.AsyncTask,Runnable
public class AsyncMessageProcessor
extends com.swiftmq.swiftlet.queue.MessageProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncMessageProcessor(Session session, SessionContext ctx, Consumer consumer, int consumerCacheSize, int recoveryEpoche) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisValid()voidprocessException(Exception exception) voidprocessMessage(com.swiftmq.swiftlet.queue.MessageEntry messageEntry) voidprocessMessages(int numberMessages) voidregister()voidreset()voidrun()voidsetConsumerCacheSize(int consumerCacheSize) voidstop()Methods inherited from class com.swiftmq.swiftlet.queue.MessageProcessor
createBulkBuffer, getBulkBuffer, getCurrentBulkSize, getMaxBulkSize, getReceiverId, getRegistrationId, getRegistrationTime, getSelector, getTimeout, getTransactionId, getViewId, isAutoCommit, isBulkMode, setAutoCommit, setBulkMode, setCurrentBulkSize, setReceiverId, setRegistrationId, setRegistrationTime, setTransactionId, setViewId
-
Constructor Details
-
AsyncMessageProcessor
public AsyncMessageProcessor(Session session, SessionContext ctx, Consumer consumer, int consumerCacheSize, int recoveryEpoche)
-
-
Method Details
-
getConsumerCacheSize
public int getConsumerCacheSize() -
setConsumerCacheSize
public void setConsumerCacheSize(int consumerCacheSize) -
isValid
public boolean isValid() -
stop
public void stop()- Specified by:
stopin interfacecom.swiftmq.swiftlet.threadpool.AsyncTask- Overrides:
stopin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
reset
public void reset()- Overrides:
resetin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
processMessages
public void processMessages(int numberMessages) - Overrides:
processMessagesin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
processMessage
public void processMessage(com.swiftmq.swiftlet.queue.MessageEntry messageEntry) - Specified by:
processMessagein classcom.swiftmq.swiftlet.queue.MessageProcessor
-
processException
- Specified by:
processExceptionin classcom.swiftmq.swiftlet.queue.MessageProcessor
-
register
public void register() -
run
public void run() -
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
-