A org. that buffers Content.s
up to a max capacity.
When the complete event is received from upstream, process(List)
is invoked to processes the chunks and produce a single item of type T,
that is then published to downstream.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final List | |
| public static final int | |
| private final int | |
| private final ReactiveResponse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Overrides org. Implements org. Publisher to stop sending data and clean up resources.
|
| public ReactiveResponse | |
| public void | onComplete()
Overrides org. Implements org. |
| public void | onError(Throwable
the throwable signaled throwable)Overrides org. Implements org. |
| public void | onNext(Content.
the element signaled chunkImplements org. Publisher in response to requests to Subscription#request(long).
|
| protected abstract T |
| capacity | back to summary |
|---|---|
| private int capacity | |
| chunks | back to summary |
|---|---|
| private final List<Content. | |
| DEFAULT_MAX_CAPACITY | back to summary |
|---|---|
| public static final int DEFAULT_MAX_CAPACITY | |
| maxCapacity | back to summary |
|---|---|
| private final int maxCapacity | |
| response | back to summary |
|---|---|
| private final ReactiveResponse response | |
| AbstractBufferingProcessor | back to summary |
|---|---|
| public AbstractBufferingProcessor(ReactiveResponse response, int maxCapacity) | |
| cancel | back to summary |
|---|---|
| public void cancel() Overrides org. Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| getResponse | back to summary |
|---|---|
| public ReactiveResponse getResponse() | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides org. Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable throwable) Overrides org. Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(Content. Implements org. Doc from org. Data notification sent by the | |
| process | back to summary |
|---|---|
| protected abstract T process(List<Content. | |