Modifier and Type | Field and Description |
---|---|
private final BlockingQueue | |
private volatile boolean | |
private volatile CapacityChannel | |
private volatile boolean | |
private volatile Exception | |
private final AtomicBoolean | |
private final Object | |
private final AtomicLong | |
private volatile Subscriber | |
private final AtomicInteger |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | consume(final ByteBuffer
data source. byteBuffer)Implements org. |
public void | |
private void | |
public void | |
private void | |
public void | streamEnd(final List<? extends Header>
data stream trailers. trailers)Implements org. |
public void | subscribe(final Subscriber<? super ByteBuffer>
the subscriber)Subscriber that will consume signals from this Publisher Implements org. Publisher to start streaming data.
|
private void | |
public void | updateCapacity(final CapacityChannel
the channel for capacity updates. capacityChannel)Implements org. |
buffers | back to summary |
---|---|
private final BlockingQueue<ByteBuffer> buffers |
cancelled | back to summary |
---|---|
private volatile boolean cancelled |
capacityChannel | back to summary |
---|---|
private volatile CapacityChannel capacityChannel |
completed | back to summary |
---|---|
private volatile boolean completed |
exception | back to summary |
---|---|
private volatile Exception exception |
flushInProgress | back to summary |
---|---|
private final AtomicBoolean flushInProgress |
flushLock | back to summary |
---|---|
private final Object flushLock |
requests | back to summary |
---|---|
private final AtomicLong requests |
subscriber | back to summary |
---|---|
private volatile Subscriber<? super ByteBuffer> subscriber |
windowScalingIncrement | back to summary |
---|---|
private final AtomicInteger windowScalingIncrement |
ReactiveDataConsumer | back to summary |
---|---|
pack-priv ReactiveDataConsumer() |
consume | back to summary |
---|---|
public void consume(final ByteBuffer byteBuffer) throws IOException Implements org. Doc from org. Triggered to pass incoming data to the data consumer. The consumer must consume the entire content of the data buffer. The consumer must stop incrementing its capacity on the capacity channel if it is unable to accept more data. Once the data consumer has handled accumulated data or allocated more intermediate storage it can update its capacity information on the capacity channel.
|
failed | back to summary |
---|---|
public void failed(final Exception cause) |
flushToSubscriber | back to summary |
---|---|
private void flushToSubscriber() |
releaseResources | back to summary |
---|---|
public void releaseResources() Implements org.
|
signalCapacity | back to summary |
---|---|
private void signalCapacity(final CapacityChannel channel) throws IOException |
streamEnd | back to summary |
---|---|
public void streamEnd(final List<? extends Header> trailers) Implements org. Doc from org. Triggered to signal termination of the data stream. |
subscribe | back to summary |
---|---|
public void subscribe(final Subscriber<? super ByteBuffer> subscriber) Implements org. Doc from org. Request
This is a "factory method" and can be called multiple times, each time starting a new
Each
A
If the
|
throwIfCancelled | back to summary |
---|---|
private void throwIfCancelled() throws IOException |
updateCapacity | back to summary |
---|---|
public void updateCapacity(final CapacityChannel capacityChannel) throws IOException Implements org. Doc from org. Triggered to signal ability of the underlying data stream to receive data capacity update. The data consumer can choose to write data immediately inside the call or asynchronously at some later point.
|