-
- All Implemented Interfaces:
-
com.tds.common.reactor.Subscription
,java.io.Serializable
,java.lang.Comparable
public enum Unsubscribed implements Subscription
Represents an unsubscribed Subscription via a singleton; don't leak it!
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
Modifier and Type Method Description boolean
isUnsubscribed()
Indicates whether this {@code Subscription}
is currently unsubscribed.void
unsubscribe()
Stops the receipt of notifications on the Subscriber that was registered when this Subscriptionwas received. static Array<Unsubscribed>
values()
static Unsubscribed
valueOf(String name)
-
-
Method Detail
-
isUnsubscribed
boolean isUnsubscribed()
Indicates whether this
{@code Subscription}
is currently unsubscribed.
-
unsubscribe
void unsubscribe()
Stops the receipt of notifications on the Subscriber that was registered when this Subscriptionwas received.
This allows deregistering an Subscriber before it has finished receiving all events (i.e. beforeonCompleted is called).
-
values
static Array<Unsubscribed> values()
-
valueOf
static Unsubscribed valueOf(String name)
-
-
-
-