Class SubscriptionInfo

java.lang.Object
org.apache.activemq.command.SubscriptionInfo
All Implemented Interfaces:
DataStructure

public class SubscriptionInfo extends Object implements DataStructure
Used to represent a durable subscription.
  • Field Details

    • DATA_STRUCTURE_TYPE

      public static final byte DATA_STRUCTURE_TYPE
      See Also:
    • subscribedDestination

      protected ActiveMQDestination subscribedDestination
    • destination

      protected ActiveMQDestination destination
    • clientId

      protected String clientId
    • subscriptionName

      protected String subscriptionName
    • selector

      protected String selector
    • noLocal

      protected boolean noLocal
  • Constructor Details

    • SubscriptionInfo

      public SubscriptionInfo()
    • SubscriptionInfo

      public SubscriptionInfo(String clientId, String subscriptionName)
  • Method Details

    • getDataStructureType

      public byte getDataStructureType()
      Specified by:
      getDataStructureType in interface DataStructure
      Returns:
      The type of the data structure
    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
    • getDestination

      public ActiveMQDestination getDestination()
      This is the a resolved destination that the subscription is receiving messages from. This will never be a pattern or a composite destination.
    • setDestination

      public void setDestination(ActiveMQDestination destination)
    • getSelector

      public String getSelector()
    • setSelector

      public void setSelector(String selector)
    • getSubcriptionName

      public String getSubcriptionName()
    • setSubcriptionName

      public void setSubcriptionName(String subscriptionName)
      Parameters:
      subscriptionName - *
    • getSubscriptionName

      public String getSubscriptionName()
    • setSubscriptionName

      public void setSubscriptionName(String subscriptionName)
    • isMarshallAware

      public boolean isMarshallAware()
      Specified by:
      isMarshallAware in interface DataStructure
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSubscribedDestination

      public ActiveMQDestination getSubscribedDestination()
      The destination the client originally subscribed to.. This may not match the method if the subscribed destination uses patterns or composites. If the subscribed destinationis not set, this just ruturns the desitination.
    • setSubscribedDestination

      public void setSubscribedDestination(ActiveMQDestination subscribedDestination)
    • isNoLocal

      public boolean isNoLocal()
    • setNoLocal

      public void setNoLocal(boolean noLocal)