Class NullMessageReference
- java.lang.Object
-
- org.apache.activemq.broker.region.NullMessageReference
-
- All Implemented Interfaces:
org.apache.activemq.broker.region.MessageReference,QueueMessageReference
public final class NullMessageReference extends Object implements QueueMessageReference
Used by theQueueMessageReference.NULL_MESSAGE
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.broker.region.QueueMessageReference
NULL_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description NullMessageReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanProcessAsExpired()intdecrementReferenceCount()voiddrop()booleandropIfLive()longgetExpiration()StringgetGroupID()intgetGroupSequence()LockOwnergetLockOwner()org.apache.activemq.command.MessagegetMessage()org.apache.activemq.command.MessagegetMessageHardRef()org.apache.activemq.command.MessageIdgetMessageId()intgetRedeliveryCounter()intgetReferenceCount()DestinationgetRegionDestination()intgetSize()org.apache.activemq.command.ConsumerIdgetTargetConsumerId()voidincrementRedeliveryCounter()intincrementReferenceCount()booleanisAcked()booleanisAdvisory()booleanisDropped()booleanisExpired()booleanisPersistent()booleanlock(LockOwner subscription)voidsetAcked(boolean b)booleanunlock()
-
-
-
Method Detail
-
drop
public void drop()
- Specified by:
dropin interfaceQueueMessageReference
-
dropIfLive
public boolean dropIfLive()
- Specified by:
dropIfLivein interfaceQueueMessageReference
-
getLockOwner
public LockOwner getLockOwner()
- Specified by:
getLockOwnerin interfaceQueueMessageReference
-
isAcked
public boolean isAcked()
- Specified by:
isAckedin interfaceQueueMessageReference
-
isDropped
public boolean isDropped()
- Specified by:
isDroppedin interfaceorg.apache.activemq.broker.region.MessageReference- Specified by:
isDroppedin interfaceQueueMessageReference
-
lock
public boolean lock(LockOwner subscription)
- Specified by:
lockin interfaceQueueMessageReference
-
setAcked
public void setAcked(boolean b)
- Specified by:
setAckedin interfaceQueueMessageReference
-
unlock
public boolean unlock()
- Specified by:
unlockin interfaceQueueMessageReference
-
decrementReferenceCount
public int decrementReferenceCount()
- Specified by:
decrementReferenceCountin interfaceorg.apache.activemq.broker.region.MessageReference
-
getExpiration
public long getExpiration()
- Specified by:
getExpirationin interfaceorg.apache.activemq.broker.region.MessageReference
-
getGroupID
public String getGroupID()
- Specified by:
getGroupIDin interfaceorg.apache.activemq.broker.region.MessageReference
-
getGroupSequence
public int getGroupSequence()
- Specified by:
getGroupSequencein interfaceorg.apache.activemq.broker.region.MessageReference
-
getMessage
public org.apache.activemq.command.Message getMessage()
- Specified by:
getMessagein interfaceorg.apache.activemq.broker.region.MessageReference
-
getMessageHardRef
public org.apache.activemq.command.Message getMessageHardRef()
- Specified by:
getMessageHardRefin interfaceorg.apache.activemq.broker.region.MessageReference
-
getMessageId
public org.apache.activemq.command.MessageId getMessageId()
- Specified by:
getMessageIdin interfaceorg.apache.activemq.broker.region.MessageReference
-
getRedeliveryCounter
public int getRedeliveryCounter()
- Specified by:
getRedeliveryCounterin interfaceorg.apache.activemq.broker.region.MessageReference
-
getReferenceCount
public int getReferenceCount()
- Specified by:
getReferenceCountin interfaceorg.apache.activemq.broker.region.MessageReference
-
getRegionDestination
public Destination getRegionDestination()
- Specified by:
getRegionDestinationin interfaceorg.apache.activemq.broker.region.MessageReference
-
getSize
public int getSize()
- Specified by:
getSizein interfaceorg.apache.activemq.broker.region.MessageReference
-
getTargetConsumerId
public org.apache.activemq.command.ConsumerId getTargetConsumerId()
- Specified by:
getTargetConsumerIdin interfaceorg.apache.activemq.broker.region.MessageReference
-
incrementRedeliveryCounter
public void incrementRedeliveryCounter()
- Specified by:
incrementRedeliveryCounterin interfaceorg.apache.activemq.broker.region.MessageReference
-
incrementReferenceCount
public int incrementReferenceCount()
- Specified by:
incrementReferenceCountin interfaceorg.apache.activemq.broker.region.MessageReference
-
isExpired
public boolean isExpired()
- Specified by:
isExpiredin interfaceorg.apache.activemq.broker.region.MessageReference
-
isPersistent
public boolean isPersistent()
- Specified by:
isPersistentin interfaceorg.apache.activemq.broker.region.MessageReference
-
isAdvisory
public boolean isAdvisory()
- Specified by:
isAdvisoryin interfaceorg.apache.activemq.broker.region.MessageReference
-
canProcessAsExpired
public boolean canProcessAsExpired()
- Specified by:
canProcessAsExpiredin interfaceorg.apache.activemq.broker.region.MessageReference
-
-