public class ReactiveTask
extends java.lang.Object
implements org.reactivestreams.Subscription
Constructor and Description |
---|
ReactiveTask() |
Modifier and Type | Method and Description |
---|---|
void |
block()
Block until the currently active reactive task completes
|
void |
cancel() |
boolean |
isCurrentTaskComplete() |
boolean |
isStreamComplete() |
void |
request(long n) |
void |
requestAll()
Request all elements to be processed from the processing Stream
|
ReactiveTask |
requestAllAsync()
Request all elements to be processed asynchronously in the processing stream
|
ReactiveTask |
requestAsync(long n)
Asyncrhonously request more elements from the Stream
|
public void cancel()
cancel
in interface org.reactivestreams.Subscription
public void request(long n)
request
in interface org.reactivestreams.Subscription
public boolean isCurrentTaskComplete()
public boolean isStreamComplete()
public ReactiveTask requestAsync(long n)
n
- Number of elements to requestpublic void requestAll()
public ReactiveTask requestAllAsync()
public void block()