Interface Subscription
- All Superinterfaces:
AutoCloseable,Closeable
A SubscriptionHandler represents a subscription to an asynchronous event
channel.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unsubscribes thisSubscriptionHandlerfrom receiving messages sent to this channel.Get the return value associated with establishing this subscription.booleanIndicates whether thisSubscriptionis currently unsubscribed.
-
Method Details
-
close
void close()Unsubscribes thisSubscriptionHandlerfrom receiving messages sent to this channel.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- See Also:
-
isUnsubscribed
boolean isUnsubscribed()Indicates whether thisSubscriptionis currently unsubscribed.- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-
getReturnValue
Object getReturnValue()Get the return value associated with establishing this subscription.- Returns:
- return value
-