Class ResponsePublisher<ResponseT extends SdkResponse>
- java.lang.Object
-
- software.amazon.awssdk.core.async.ResponsePublisher<ResponseT>
-
- Type Parameters:
ResponseT
- Pojo response type.
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>
,SdkPublisher<ByteBuffer>
public final class ResponsePublisher<ResponseT extends SdkResponse> extends Object implements SdkPublisher<ByteBuffer>
AnSdkPublisher
that publishes response body content and also contains a reference to theSdkResponse
returned by the service.- See Also:
AsyncResponseTransformer.toPublisher()
-
-
Constructor Summary
Constructors Constructor Description ResponsePublisher(ResponseT response, SdkPublisher<ByteBuffer> publisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
ResponseT
response()
void
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Constructor Detail
-
ResponsePublisher
public ResponsePublisher(ResponseT response, SdkPublisher<ByteBuffer> publisher)
-
-
Method Detail
-
response
public ResponseT response()
- Returns:
- the unmarshalled response object from the service.
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<ResponseT extends SdkResponse>
-
-