Interface Subscription
- All Superinterfaces:
AutoCloseable
,Closeable
A SubscriptionHandler represents a subscription to an asynchronous event
channel.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Unsubscribes thisSubscriptionHandler
from receiving messages sent to this channel.Get the return value associated with establishing this subscription.boolean
Indicates whether thisSubscription
is currently unsubscribed.
-
Method Details
-
close
void close()Unsubscribes thisSubscriptionHandler
from receiving messages sent to this channel.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- See Also:
-
isUnsubscribed
boolean isUnsubscribed()Indicates whether thisSubscription
is currently unsubscribed.- Returns:
true
if thisSubscription
is currently unsubscribed,false
otherwise
-
getReturnValue
Object getReturnValue()Get the return value associated with establishing this subscription.- Returns:
- return value
-