Class Subscription


  • public class Subscription
    extends java.lang.Object
    This class represents a subscription from the Broker's perspective.
    • Constructor Summary

      Constructors 
      Constructor Description
      Subscription​(int subID, java.lang.String name, java.lang.String filter)
      Create a Broker subscription representation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFilter()
      Get the subscription filter.
      java.lang.String getName()
      Get the subscription name (event type name).
      int getSubID()
      Get the subscription ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Subscription

        public Subscription​(int subID,
                            java.lang.String name,
                            java.lang.String filter)
        Create a Broker subscription representation.
        Parameters:
        subID - the subscription ID
        name - the subscription name (event type name)
        filter - the subscription filter
    • Method Detail

      • getSubID

        public int getSubID()
        Get the subscription ID.
        Returns:
        the subscription ID
      • getName

        public java.lang.String getName()
        Get the subscription name (event type name).
        Returns:
        the subscription name
      • getFilter

        public java.lang.String getFilter()
        Get the subscription filter.
        Returns:
        the subscription filter