A Flow. that wraps a Content..
Content delivered to the onNext(Content. method is
written to Content.
and the chunk is released once the write callback is succeeded or failed.
| Modifier and Type | Field and Description |
|---|---|
| private final Callback | |
| private final AtomicBoolean | |
| private final AtomicInteger | |
| private final Content. | |
| private Flow. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | onComplete()
Implements java. |
| public void | onError(Throwable
the exception failure)Implements java. |
| public void | onNext(Content.
the item chunkImplements java. |
| public void | onSubscribe(Flow.
a new subscription subscriptionImplements java. |
| callback | back to summary |
|---|---|
| private final Callback callback | |
| callbackComplete | back to summary |
|---|---|
| private final AtomicBoolean callbackComplete | |
| lastAndComplete | back to summary |
|---|---|
| private final AtomicInteger lastAndComplete | |
| sink | back to summary |
|---|---|
| private final Content. | |
| subscription | back to summary |
|---|---|
| private Flow. | |
| ContentSinkSubscriber | back to summary |
|---|---|
| public ContentSinkSubscriber(Content. | |
| complete | back to summary |
|---|---|
| private void complete() | |
| error | back to summary |
|---|---|
| private void error(Throwable failure) | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements java. Doc from java. Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription. If this method throws an exception, resulting behavior is undefined.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable failure) Implements java. Doc from java. Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. If this method itself throws an exception, resulting behavior is undefined. | |
| onNext | back to summary |
|---|---|
| public void onNext(Content. Implements java. Doc from java. Method invoked with a Subscription's next item. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription to be cancelled. | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Flow. Implements java. Doc from java. Method invoked prior to invoking any other Subscriber methods for the given Subscription. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription not to be established or to be cancelled. Typically, implementations of this method invoke
| |