Interface QueueMessageReference
-
- All Superinterfaces:
MessageReference
- All Known Implementing Classes:
IndirectMessageReference,NullMessageReference
public interface QueueMessageReference extends MessageReference
Queue specific MessageReference.- Author:
- fateev@amazon.com
-
-
Field Summary
Fields Modifier and Type Field Description static QueueMessageReferenceNULL_MESSAGE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrop()booleandropIfLive()LockOwnergetLockOwner()booleanisAcked()booleanisDropped()Returns true if this message is dropped.booleanlock(LockOwner subscription)voidsetAcked(boolean b)booleanunlock()-
Methods inherited from interface org.apache.activemq.broker.region.MessageReference
canProcessAsExpired, decrementReferenceCount, getExpiration, getGroupID, getGroupSequence, getMessage, getMessageHardRef, getMessageId, getRedeliveryCounter, getReferenceCount, getRegionDestination, getSize, getTargetConsumerId, incrementRedeliveryCounter, incrementReferenceCount, isAdvisory, isExpired, isPersistent
-
-
-
-
Field Detail
-
NULL_MESSAGE
static final QueueMessageReference NULL_MESSAGE
-
-
Method Detail
-
isAcked
boolean isAcked()
-
setAcked
void setAcked(boolean b)
-
drop
void drop()
-
dropIfLive
boolean dropIfLive()
-
isDropped
boolean isDropped()
Description copied from interface:MessageReferenceReturns true if this message is dropped.- Specified by:
isDroppedin interfaceMessageReference
-
lock
boolean lock(LockOwner subscription)
-
unlock
boolean unlock()
-
getLockOwner
LockOwner getLockOwner()
-
-