Modifier and Type | Interface and Description |
---|---|
interface |
AsyncRequestBody
Interface to allow non-blocking streaming of request content.
|
Modifier and Type | Class and Description |
---|---|
class |
ResponsePublisher<ResponseT extends SdkResponse>
An
SdkPublisher that publishes response body content and also contains a reference to the SdkResponse returned
by the service. |
Modifier and Type | Method and Description |
---|---|
static <T> SdkPublisher<T> |
SdkPublisher.adapt(org.reactivestreams.Publisher<T> toAdapt)
Adapts a
Publisher to SdkPublisher . |
default SdkPublisher<List<T>> |
SdkPublisher.buffer(int bufferSize)
Buffers the events into lists of the given buffer size.
|
default SdkPublisher<T> |
SdkPublisher.doAfterOnCancel(Runnable afterOnCancel)
Add a callback that will be invoked after this publisher invokes
Subscription.cancel() . |
default SdkPublisher<T> |
SdkPublisher.doAfterOnComplete(Runnable afterOnComplete)
Add a callback that will be invoked after this publisher invokes
Subscriber.onComplete() . |
default SdkPublisher<T> |
SdkPublisher.doAfterOnError(Consumer<Throwable> afterOnError)
Add a callback that will be invoked after this publisher invokes
Subscriber.onError(Throwable) . |
default <U extends T> |
SdkPublisher.filter(Class<U> clzz)
Filters published events to just those that are instances of the given class.
|
default SdkPublisher<T> |
SdkPublisher.filter(Predicate<T> predicate)
Filters published events to just those that match the given predicate.
|
default <U> SdkPublisher<U> |
SdkPublisher.flatMapIterable(Function<T,Iterable<U>> mapper)
Performs a mapping on the published events and creates a new publisher that emits the mapped events one by one.
|
default SdkPublisher<T> |
SdkPublisher.limit(int limit)
Limit the number of published events and cancel the subscription after that limit has been reached.
|
default <U> SdkPublisher<U> |
SdkPublisher.map(Function<T,U> mapper)
Perform a mapping on the published events.
|
Modifier and Type | Method and Description |
---|---|
void |
AsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher)
Called when the response stream is ready.
|
Constructor and Description |
---|
ResponsePublisher(ResponseT response,
SdkPublisher<ByteBuffer> publisher) |
Modifier and Type | Class and Description |
---|---|
static class |
AsyncRequestBodyListener.NotifyingAsyncRequestBody |
static class |
PublisherListener.NotifyingPublisher<T> |
Modifier and Type | Method and Description |
---|---|
static <T> SdkPublisher<T> |
PublisherListener.wrap(SdkPublisher<T> delegate,
PublisherListener<T> listener)
Wrap a
SdkPublisher with a new one that will notify a PublisherListener of important events occurring. |
Modifier and Type | Method and Description |
---|---|
void |
AsyncResponseTransformerListener.NotifyingAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
default void |
AsyncResponseTransformerListener.transformerOnStream(SdkPublisher<ByteBuffer> publisher)
Invoked before
AsyncResponseTransformer.onStream(SdkPublisher) |
static <T> SdkPublisher<T> |
PublisherListener.wrap(SdkPublisher<T> delegate,
PublisherListener<T> listener)
Wrap a
SdkPublisher with a new one that will notify a PublisherListener of important events occurring. |
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayAsyncRequestBody
An implementation of
AsyncRequestBody for providing data from memory. |
class |
ChecksumCalculatingAsyncRequestBody
Wrapper class to wrap an AsyncRequestBody.
|
class |
ChecksumValidatingPublisher
Publisher to update the checksum as it reads the data and
finally compares the computed checksum with expected Checksum.
|
class |
EnvelopeWrappedSdkPublisher<T>
Publisher implementation that wraps the content of another publisher in an envelope with an optional prefix (or
header) and suffix (or footer).
|
class |
FileAsyncRequestBody
Implementation of
AsyncRequestBody that reads data from a file. |
Modifier and Type | Method and Description |
---|---|
static SdkPublisher<ByteBuffer> |
SdkPublishers.envelopeWrappedPublisher(org.reactivestreams.Publisher<ByteBuffer> publisher,
String envelopePrefix,
String envelopeSuffix)
Constructs an
SdkPublisher that wraps a ByteBuffer publisher and inserts additional content
that wraps the published content like an envelope. |
Modifier and Type | Method and Description |
---|---|
void |
PublisherAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
void |
FileAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
void |
ByteArrayAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
Modifier and Type | Class and Description |
---|---|
class |
PaginatedItemsPublisher<ResponseT,ItemT>
A publisher to request for a stream of paginated items.
|
Copyright © 2022. All rights reserved.