ResponseT
- Pojo response type.public final class ResponsePublisher<ResponseT extends SdkResponse> extends Object implements SdkPublisher<ByteBuffer>
SdkPublisher
that publishes response body content and also contains a reference to the SdkResponse
returned
by the service.AsyncResponseTransformer.toPublisher()
Constructor and Description |
---|
ResponsePublisher(ResponseT response,
SdkPublisher<ByteBuffer> publisher) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
ResponseT |
response() |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
adapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
public ResponsePublisher(ResponseT response, SdkPublisher<ByteBuffer> publisher)
public ResponseT response()
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> subscriber)
subscribe
in interface org.reactivestreams.Publisher<ByteBuffer>
Copyright © 2022. All rights reserved.