| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final ArrayDeque | |
| private final AtomicBoolean | |
| private final AtomicReference | |
| private final Publisher | |
| private final AtomicReference | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. |
| public void | |
| public void | onError(final Throwable
the throwable signaled throwable)Implements org. |
| public void | onNext(final ByteBuffer
the element signaled byteBuffer)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(final Subscription
the subscription)Subscription that allows requesting data via Subscription#request(long)Implements org. Publisher#subscribe(Subscriber).
|
| public void | produce(final DataStreamChannel
the data channel capable to accepting more data. channel)Implements org. |
| public void | |
| pack-priv void | |
| private void |
| BUFFER_WINDOW_SIZE | back to summary |
|---|---|
| private static final int BUFFER_WINDOW_SIZE | |
| buffers | back to summary |
|---|---|
| private final ArrayDeque<ByteBuffer> buffers | |
| complete | back to summary |
|---|---|
| private final AtomicBoolean complete | |
| exception | back to summary |
|---|---|
| private final AtomicReference<Throwable> exception | |
| publisher | back to summary |
|---|---|
| private final Publisher<ByteBuffer> publisher | |
| requestChannel | back to summary |
|---|---|
| private final AtomicReference<DataStreamChannel> requestChannel | |
| subscription | back to summary |
|---|---|
| private final AtomicReference<Subscription> subscription | |
| ReactiveDataProducer | back to summary |
|---|---|
| public ReactiveDataProducer(final Publisher<ByteBuffer> publisher) | |
| available | back to summary |
|---|---|
| public int available() Implements org. Doc from org. Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(final Throwable throwable) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(final ByteBuffer byteBuffer) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(final Subscription subscription) Implements org. Doc from org. Invoked after calling
No data will start flowing until
It is the responsibility of this
The
| |
| produce | back to summary |
|---|---|
| public void produce(final DataStreamChannel channel) throws IOException Implements org. Doc from org. Triggered to signal the ability of the underlying data channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
| |
| releaseResources | back to summary |
|---|---|
| public void releaseResources() Implements org.
| |
| setChannel | back to summary |
|---|---|
| pack-priv void setChannel(final DataStreamChannel channel) | |
| signalReadiness | back to summary |
|---|---|
| private void signalReadiness() | |