| Modifier and Type | Interface and Description |
|---|---|
interface |
AsyncRequestBody
Interface to allow non-blocking streaming of request content.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BlockingInputStreamAsyncRequestBody
An implementation of
AsyncRequestBody that allows performing a blocking write of an input stream to a downstream
service. |
class |
BlockingOutputStreamAsyncRequestBody
An implementation of
AsyncRequestBody that allows performing a blocking write of an output stream to a downstream
service. |
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(<any> toAdapt)
Adapts a
Publisher to SdkPublisher. |
default SdkPublisher<T> |
SdkPublisher.addTrailingData(Supplier<Iterable<T>> trailingDataSupplier)
Creates a new publisher that emits trailing events provided by
trailingDataSupplier in addition to the
published events. |
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.
|
default SdkPublisher<AsyncRequestBody> |
AsyncRequestBody.split(AsyncRequestBodySplitConfiguration splitConfiguration)
Converts this
AsyncRequestBody to a publisher of AsyncRequestBodys, each of which publishes a specific
portion of the original data, based on the provided AsyncRequestBodySplitConfiguration. |
default SdkPublisher<AsyncRequestBody> |
AsyncRequestBody.split(Consumer<AsyncRequestBodySplitConfiguration.Builder> splitConfiguration)
This is a convenience method that passes an instance of the
AsyncRequestBodySplitConfiguration builder,
avoiding the need to create one manually via AsyncRequestBodySplitConfiguration.builder(). |
| 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 |
ByteBuffersAsyncRequestBody
An implementation of
AsyncRequestBody for providing data from the supplied ByteBuffer array. |
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 |
CompressionAsyncRequestBody
Wrapper class to wrap an AsyncRequestBody.
|
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. |
class |
InputStreamWithExecutorAsyncRequestBody
A
AsyncRequestBody that allows reading data off of an InputStream using a background
ExecutorService. |
class |
SplittingPublisher
Splits an
AsyncRequestBody to multiple smaller AsyncRequestBodys, each of which publishes a specific portion of
the original data. |
| Modifier and Type | Method and Description |
|---|---|
static SdkPublisher<ByteBuffer> |
SdkPublishers.envelopeWrappedPublisher(<any> 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. |
SdkPublisher<AsyncRequestBody> |
FileAsyncRequestBodySplitHelper.split() |
SdkPublisher<AsyncRequestBody> |
FileAsyncRequestBody.split(AsyncRequestBodySplitConfiguration splitConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
ByteArrayAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
void |
FileAsyncResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
void |
InputStreamResponseTransformer.onStream(SdkPublisher<ByteBuffer> publisher) |
void |
PublisherAsyncResponseTransformer.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 © 2023. All rights reserved.