java.lang.Object
com.hedera.hashgraph.sdk.SubscriptionHandle
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetOnUnsubscribe(Runnable onUnsubscribe) Assign the callback method.voidCall the callback.
-
Constructor Details
-
SubscriptionHandle
SubscriptionHandle()Constructor.
-
-
Method Details
-
setOnUnsubscribe
Assign the callback method.- Parameters:
onUnsubscribe- the callback method
-
unsubscribe
public void unsubscribe()Call the callback.
-