Class StreamingResponseBody.PublisherBody
java.lang.Object
com.soklet.StreamingResponseBody.PublisherBody
- All Implemented Interfaces:
StreamingResponseBody
- Enclosing interface:
StreamingResponseBody
public static final class StreamingResponseBody.PublisherBody
extends Object
implements StreamingResponseBody
A streaming body backed by a
Flow.Publisher.- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from interface StreamingResponseBody
StreamingResponseBody.InputStreamBody, StreamingResponseBody.InputStreamBuilder, StreamingResponseBody.PublisherBody, StreamingResponseBody.ReaderBody, StreamingResponseBody.ReaderBuilder, StreamingResponseBody.WriterBodyModifier and TypeInterfaceDescriptionstatic final classA streaming body backed by anInputStreamsupplier.static final classBuilder for input-stream-backed response bodies.static final classA streaming body backed by aFlow.Publisher.static final classA streaming body backed by aReadersupplier.static final classBuilder for reader-backed response bodies.static final classA streaming body backed by a writer callback. -
Field Summary
Fields inherited from interface StreamingResponseBody
DEFAULT_INPUT_STREAM_BUFFER_SIZE_IN_BYTES, DEFAULT_MALFORMED_INPUT_ACTION, DEFAULT_READER_BUFFER_SIZE_IN_CHARACTERS, DEFAULT_UNMAPPABLE_CHARACTER_ACTIONModifier and TypeFieldDescriptionstatic final @NonNull CodingErrorActionstatic final @NonNull CodingErrorAction -
Method Summary
Modifier and TypeMethodDescriptionThe publisher that emits byte buffers for this response.
-
Method Details
-
getPublisher
The publisher that emits byte buffers for this response.- Returns:
- the byte-buffer publisher
-