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
  • Constructor Details

    • NullMessageReference

      public NullMessageReference()
  • Method Details

    • drop

      public void drop()
      Specified by:
      drop in interface QueueMessageReference
    • dropIfLive

      public boolean dropIfLive()
      Specified by:
      dropIfLive in interface QueueMessageReference
    • getLockOwner

      public LockOwner getLockOwner()
      Specified by:
      getLockOwner in interface QueueMessageReference
    • isAcked

      public boolean isAcked()
      Specified by:
      isAcked in interface QueueMessageReference
    • isDropped

      public boolean isDropped()
      Specified by:
      isDropped in interface org.apache.activemq.broker.region.MessageReference
      Specified by:
      isDropped in interface QueueMessageReference
    • lock

      public boolean lock(LockOwner subscription)
      Specified by:
      lock in interface QueueMessageReference
    • setAcked

      public void setAcked(boolean b)
      Specified by:
      setAcked in interface QueueMessageReference
    • unlock

      public boolean unlock()
      Specified by:
      unlock in interface QueueMessageReference
    • decrementReferenceCount

      public int decrementReferenceCount()
      Specified by:
      decrementReferenceCount in interface org.apache.activemq.broker.region.MessageReference
    • getExpiration

      public long getExpiration()
      Specified by:
      getExpiration in interface org.apache.activemq.broker.region.MessageReference
    • getGroupID

      public String getGroupID()
      Specified by:
      getGroupID in interface org.apache.activemq.broker.region.MessageReference
    • getGroupSequence

      public int getGroupSequence()
      Specified by:
      getGroupSequence in interface org.apache.activemq.broker.region.MessageReference
    • getMessage

      public org.apache.activemq.command.Message getMessage()
      Specified by:
      getMessage in interface org.apache.activemq.broker.region.MessageReference
    • getMessageHardRef

      public org.apache.activemq.command.Message getMessageHardRef()
      Specified by:
      getMessageHardRef in interface org.apache.activemq.broker.region.MessageReference
    • getMessageId

      public org.apache.activemq.command.MessageId getMessageId()
      Specified by:
      getMessageId in interface org.apache.activemq.broker.region.MessageReference
    • getRedeliveryCounter

      public int getRedeliveryCounter()
      Specified by:
      getRedeliveryCounter in interface org.apache.activemq.broker.region.MessageReference
    • getReferenceCount

      public int getReferenceCount()
      Specified by:
      getReferenceCount in interface org.apache.activemq.broker.region.MessageReference
    • getRegionDestination

      public Destination getRegionDestination()
      Specified by:
      getRegionDestination in interface org.apache.activemq.broker.region.MessageReference
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.apache.activemq.broker.region.MessageReference
    • getTargetConsumerId

      public org.apache.activemq.command.ConsumerId getTargetConsumerId()
      Specified by:
      getTargetConsumerId in interface org.apache.activemq.broker.region.MessageReference
    • incrementRedeliveryCounter

      public void incrementRedeliveryCounter()
      Specified by:
      incrementRedeliveryCounter in interface org.apache.activemq.broker.region.MessageReference
    • incrementReferenceCount

      public int incrementReferenceCount()
      Specified by:
      incrementReferenceCount in interface org.apache.activemq.broker.region.MessageReference
    • isExpired

      public boolean isExpired()
      Specified by:
      isExpired in interface org.apache.activemq.broker.region.MessageReference
    • isPersistent

      public boolean isPersistent()
      Specified by:
      isPersistent in interface org.apache.activemq.broker.region.MessageReference
    • isAdvisory

      public boolean isAdvisory()
      Specified by:
      isAdvisory in interface org.apache.activemq.broker.region.MessageReference
    • canProcessAsExpired

      public boolean canProcessAsExpired()
      Specified by:
      canProcessAsExpired in interface org.apache.activemq.broker.region.MessageReference