|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object QueuedExecutor org.jboss.messaging.util.ClearableQueuedExecutor
public class ClearableQueuedExecutor
A ClearableQueuedExecutor This class extends the QueuedExector with a method to clear all but the currently executing task without shutting it down. We need this functionality when failing over a session. In that case we need to clear all tasks apart from the currently executing one. We can't just shutdownAfterProcessingCurrentTask then use another instance after failover since when failover resumes the current task and the next delivery will be executed on different threads and smack into each other. http://jira.jboss.org/jira/browse/JBMESSAGING-904
Constructor Summary | |
---|---|
ClearableQueuedExecutor()
|
|
ClearableQueuedExecutor(Channel channel)
|
Method Summary | |
---|---|
void |
clearAllExceptCurrentTask()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClearableQueuedExecutor()
public ClearableQueuedExecutor(Channel channel)
Method Detail |
---|
public void clearAllExceptCurrentTask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |