Package org.apache.activemq.store
Class MessageRecoveryContext
java.lang.Object
org.apache.activemq.store.MessageRecoveryContext
- All Implemented Interfaces:
MessageRecoveryListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRecoveryNextMessage(Long sequenceId) intintbooleanhasSpace()booleanisDuplicate(org.apache.activemq.command.MessageId ref) check if ref is a duplicate but do not record the referencebooleanbooleanrecoverMessage(org.apache.activemq.command.Message message) booleanrecoverMessageReference(org.apache.activemq.command.MessageId ref) voidsetEndSequenceId(long endSequenceId) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.store.MessageRecoveryListener
canRecoveryNextMessage
-
Field Details
-
DEFAULT_MAX_MESSAGE_COUNT_RETURNED
public static final int DEFAULT_MAX_MESSAGE_COUNT_RETURNED- See Also:
-
DEFAULT_USE_DEDICATED_CURSOR
public static final boolean DEFAULT_USE_DEDICATED_CURSOR- See Also:
-
-
Method Details
-
isUseDedicatedCursor
public boolean isUseDedicatedCursor() -
getMaxMessageCountReturned
public int getMaxMessageCountReturned() -
getOffset
-
getEndMessageId
-
getStartMessageId
-
getMessageRecoveryListener
-
setEndSequenceId
public void setEndSequenceId(long endSequenceId) -
canRecoveryNextMessage
-
recoverMessage
- Specified by:
recoverMessagein interfaceMessageRecoveryListener- Throws:
Exception
-
recoverMessageReference
- Specified by:
recoverMessageReferencein interfaceMessageRecoveryListener- Throws:
Exception
-
hasSpace
public boolean hasSpace()- Specified by:
hasSpacein interfaceMessageRecoveryListener
-
isDuplicate
public boolean isDuplicate(org.apache.activemq.command.MessageId ref) Description copied from interface:MessageRecoveryListenercheck if ref is a duplicate but do not record the reference- Specified by:
isDuplicatein interfaceMessageRecoveryListener- Returns:
- true if ref is a duplicate
-
getRecoveredCount
public int getRecoveredCount() -
toString
-