public class StreamSubscription
extends java.lang.Object
implements org.reactivestreams.Subscription
| Modifier and Type | Field and Description |
|---|---|
boolean |
isOpen |
protected java.util.concurrent.atomic.AtomicLong |
requested |
| Constructor and Description |
|---|
StreamSubscription() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
isActive() |
void |
request(long n) |
boolean |
singleActiveRequest(long n,
java.util.function.LongConsumer work) |
public volatile boolean isOpen
protected final java.util.concurrent.atomic.AtomicLong requested
public boolean isActive()
public boolean singleActiveRequest(long n,
java.util.function.LongConsumer work)
public void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscription