Package org.eclipse.jetty.io.content
Class ContentSinkSubscriber
java.lang.Object
org.eclipse.jetty.io.content.ContentSinkSubscriber
- All Implemented Interfaces:
Flow.Subscriber<Content.Chunk>
A Flow.Subscriber
that wraps a Content.Sink
.
Content delivered to the onNext(Content.Chunk)
method is
written to Content.Sink.write(boolean, ByteBuffer, Callback)
and the chunk is released once the write callback is succeeded or failed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
onNext
(Content.Chunk chunk) void
onSubscribe
(Flow.Subscription subscription)
-
Constructor Details
-
ContentSinkSubscriber
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribe
in interfaceFlow.Subscriber<Content.Chunk>
-
onNext
- Specified by:
onNext
in interfaceFlow.Subscriber<Content.Chunk>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<Content.Chunk>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<Content.Chunk>
-