public enum EmptySubscription extends java.lang.Enum<EmptySubscription> implements org.reactivestreams.Subscription
| Enum Constant and Description |
|---|
INSTANCE
A singleton, stateless instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
static void |
complete(org.reactivestreams.Subscriber<?> s)
Sets the empty subscription instance on the subscriber and then
calls onComplete.
|
static void |
error(java.lang.Throwable e,
org.reactivestreams.Subscriber<?> s)
Sets the empty subscription instance on the subscriber and then
calls onError with the supplied error.
|
void |
request(long n) |
java.lang.String |
toString() |
static EmptySubscription |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EmptySubscription[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmptySubscription INSTANCE
public static EmptySubscription[] values()
for (EmptySubscription c : EmptySubscription.values()) System.out.println(c);
public static EmptySubscription valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic java.lang.String toString()
toString in class java.lang.Enum<EmptySubscription>public static void error(java.lang.Throwable e,
org.reactivestreams.Subscriber<?> s)
Make sure this is only called if the subscriber hasn't received a subscription already (there is no way of telling this).
e - the error to deliver to the subscribers - the target subscriberpublic static void complete(org.reactivestreams.Subscriber<?> s)
Make sure this is only called if the subscriber hasn't received a subscription already (there is no way of telling this).
s - the target subscriber