|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PendingMessageCursor
Interface to pending message (messages awaiting disptach to a consumer) cursor
Method Summary | |
---|---|
void |
add(ConnectionContext context,
Destination destination)
Add a destination |
void |
addMessageFirst(MessageReference node)
add message to await dispatch |
void |
addMessageLast(MessageReference node)
add message to await dispatch |
void |
clear()
clear all pending messages |
int |
getMaxBatchSize()
|
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 |
void |
resetForGC()
Give the cursor a hint that we are about to remove messages from memory only |
void |
setMaxBatchSize(int maxBatchSize)
Set the max batch size |
int |
size()
|
Methods inherited from interface org.apache.activemq.Service |
---|
start, stop |
Method Detail |
---|
void add(ConnectionContext context, Destination destination) throws java.lang.Exception
context
- destination
-
java.lang.Exception
void remove(ConnectionContext context, Destination destination) throws java.lang.Exception
context
- destination
-
java.lang.Exception
boolean isEmpty()
void reset()
void addMessageLast(MessageReference node) throws java.lang.Exception
node
-
java.io.IOException
java.lang.Exception
void addMessageFirst(MessageReference node) throws java.lang.Exception
node
-
java.lang.Exception
boolean hasNext()
MessageReference next()
void remove()
int size()
void clear()
boolean isRecoveryRequired()
int getMaxBatchSize()
void setMaxBatchSize(int maxBatchSize)
maxBatchSize
- void resetForGC()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |