Class SubscriptionHandle

java.lang.Object
com.hedera.hashgraph.sdk.SubscriptionHandle

public final class SubscriptionHandle extends Object
Subscribe to a topic ID's messages from a mirror node. You will receive all messages for the specified topic or within the defined start and end time. See Hedera Documentation
  • Constructor Details

    • SubscriptionHandle

      SubscriptionHandle()
      Constructor.
  • Method Details

    • setOnUnsubscribe

      void setOnUnsubscribe(Runnable onUnsubscribe)
      Assign the callback method.
      Parameters:
      onUnsubscribe - the callback method
    • unsubscribe

      public void unsubscribe()
      Call the callback.