|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor
org.apache.activemq.broker.region.cursors.StoreDurableSubscriberCursor
public class StoreDurableSubscriberCursor
perist pending messages pending message (messages awaiting disptach to a consumer) cursor
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor |
|---|
maxBatchSize |
| Constructor Summary | |
|---|---|
StoreDurableSubscriberCursor(java.lang.String clientId,
java.lang.String subscriberName,
Store store,
int maxBatchSize)
|
|
| Method Summary | |
|---|---|
void |
add(ConnectionContext context,
Destination destination)
Add a destination |
void |
addMessageLast(MessageReference node)
add message to await dispatch |
void |
clear()
clear all pending messages |
protected PendingMessageCursor |
getNextCursor()
|
boolean |
hasNext()
|
boolean |
isEmpty()
|
boolean |
isRecoveryRequired()
Informs the Broker if the subscription needs to intervention to recover it's state e.g. |
MessageReference |
next()
|
void |
remove()
remove the message at the cursor position |
void |
remove(ConnectionContext context,
Destination destination)
remove a destination |
void |
reset()
reset the cursor |
int |
size()
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.activemq.broker.region.cursors.AbstractPendingMessageCursor |
|---|
addMessageFirst, fillBatch, getMaxBatchSize, resetForGC, setMaxBatchSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoreDurableSubscriberCursor(java.lang.String clientId,
java.lang.String subscriberName,
Store store,
int maxBatchSize)
topic - clientId - subscriberName -
java.io.IOException| Method Detail |
|---|
public void start()
throws java.lang.Exception
start in interface Servicestart in class AbstractPendingMessageCursorjava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Servicestop in class AbstractPendingMessageCursorjava.lang.Exception
public void add(ConnectionContext context,
Destination destination)
throws java.lang.Exception
add in interface PendingMessageCursoradd in class AbstractPendingMessageCursorcontext - destination -
java.lang.Exception
public void remove(ConnectionContext context,
Destination destination)
throws java.lang.Exception
remove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorcontext - destination -
java.lang.Exceptionpublic boolean isEmpty()
isEmpty in interface PendingMessageCursorisEmpty in class AbstractPendingMessageCursorpublic boolean isRecoveryRequired()
isRecoveryRequired in interface PendingMessageCursorisRecoveryRequired in class AbstractPendingMessageCursororg.apache.activemq.region.cursors.PendingMessageCursor
public void addMessageLast(MessageReference node)
throws java.lang.Exception
PendingMessageCursor
addMessageLast in interface PendingMessageCursoraddMessageLast in class AbstractPendingMessageCursorjava.io.IOException
java.lang.Exceptionpublic void clear()
PendingMessageCursor
clear in interface PendingMessageCursorclear in class AbstractPendingMessageCursorpublic boolean hasNext()
hasNext in interface PendingMessageCursorhasNext in class AbstractPendingMessageCursorpublic MessageReference next()
next in interface PendingMessageCursornext in class AbstractPendingMessageCursorpublic void remove()
PendingMessageCursor
remove in interface PendingMessageCursorremove in class AbstractPendingMessageCursorpublic void reset()
PendingMessageCursor
reset in interface PendingMessageCursorreset in class AbstractPendingMessageCursorpublic int size()
size in interface PendingMessageCursorsize in class AbstractPendingMessageCursor
protected PendingMessageCursor getNextCursor()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||