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>
An SdkPublisher that publishes response body content and also contains a reference to the SdkResponse returned by the service.
See Also:
  • Constructor Details

  • Method Details

    • 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 interface org.reactivestreams.Publisher<ResponseT extends SdkResponse>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object