Class NullMessageReference
java.lang.Object
org.apache.activemq.broker.region.NullMessageReference
- All Implemented Interfaces:
org.apache.activemq.broker.region.MessageReference,QueueMessageReference
Used by the
QueueMessageReference.NULL_MESSAGE-
Field Summary
Fields inherited from interface org.apache.activemq.broker.region.QueueMessageReference
NULL_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintvoiddrop()booleanlongintorg.apache.activemq.command.Messageorg.apache.activemq.command.Messageorg.apache.activemq.command.MessageIdintintintgetSize()org.apache.activemq.command.ConsumerIdvoidintbooleanisAcked()booleanbooleanbooleanbooleanbooleanvoidsetAcked(boolean b) booleanunlock()
-
Constructor Details
-
NullMessageReference
public NullMessageReference()
-
-
Method Details
-
drop
public void drop()- Specified by:
dropin interfaceQueueMessageReference
-
dropIfLive
public boolean dropIfLive()- Specified by:
dropIfLivein interfaceQueueMessageReference
-
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
- 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
- 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
- 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
-