Class Subscription

java.lang.Object
com.sas.lsaf.messaging.subscription.Subscription
All Implemented Interfaces:
Serializable

public class Subscription extends Object implements Serializable
The client representation of a subscription.
See Also:
  • Constructor Details

    • Subscription

      public Subscription(String path, SubscriptionEvent event)
      The constructor.
      Parameters:
      path - the path of the object to which to subscribe.
      event - the subscribable event.
  • Method Details

    • getEvent

      public SubscriptionEvent getEvent()
      Gets the path of the object for the subscription.
      Returns:
      The path of the object for the subscription.
    • setEvent

      public void setEvent(SubscriptionEvent event)
      Sets the event for the subscription.
      Parameters:
      event - the event for the subscription.
    • getPath

      public String getPath()
      Gets the path of the object for the subscription.
      Returns:
      The path of the object for the subscription.
    • setPath

      public void setPath(String path)
      Set the path of the object for the subscription
      Parameters:
      path - the path of the object for the subscription.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object