public enum Unsubscribed extends Enum<Unsubscribed> implements Subscription
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
isUnsubscribed()
Indicates whether this
Subscription is currently unsubscribed. |
void |
unsubscribe()
Stops the receipt of notifications on the
Subscriber that was registered when this Subscription
was received. |
static Unsubscribed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unsubscribed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unsubscribed INSTANCE
public static Unsubscribed[] values()
for (Unsubscribed c : Unsubscribed.values()) System.out.println(c);
public static Unsubscribed valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isUnsubscribed()
Subscription
Subscription
is currently unsubscribed.isUnsubscribed
in interface Subscription
true
if this Subscription
is currently unsubscribed, false
otherwisepublic void unsubscribe()
Subscription
Subscriber
that was registered when this Subscription
was received.
This allows deregistering an Subscriber
before it has finished receiving all events (i.e. before
onCompleted is called).
unsubscribe
in interface Subscription
Copyright © 2017. All rights reserved.