Class EventStreamAsyncResponseTransformer<ResponseT,EventT>
java.lang.Object
software.amazon.awssdk.awscore.eventstream.EventStreamAsyncResponseTransformer<ResponseT,EventT>
- Type Parameters:
ResponseT- Initial response type of event stream operation.EventT- Base type of event stream message frames.
- All Implemented Interfaces:
AsyncResponseTransformer<SdkResponse,Void>
@SdkProtectedApi
public final class EventStreamAsyncResponseTransformer<ResponseT,EventT>
extends Object
implements AsyncResponseTransformer<SdkResponse,Void>
Unmarshalling layer on top of the
AsyncResponseTransformer to decode event stream messages and deliver them to the
subscriber.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forEventStreamAsyncResponseTransformer.Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.AsyncResponseTransformer
AsyncResponseTransformer.SplitResult<ResponseT extends Object,ResultT extends Object>, AsyncResponseTransformer.TransformerType -
Method Summary
Modifier and TypeMethodDescriptionstatic <ResponseT,EventT>
EventStreamAsyncResponseTransformer.Builder<ResponseT,EventT> builder()Creates aEventStreamAsyncResponseTransformer.Builderused to createEventStreamAsyncResponseTransformer.voidexceptionOccurred(Throwable throwable) voidonResponse(SdkResponse response) voidonStream(SdkPublisher<ByteBuffer> publisher) prepare()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.async.AsyncResponseTransformer
name, split, split
-
Method Details
-
builder
public static <ResponseT,EventT> EventStreamAsyncResponseTransformer.Builder<ResponseT,EventT> builder()Creates aEventStreamAsyncResponseTransformer.Builderused to createEventStreamAsyncResponseTransformer.- Type Parameters:
ResponseT- Initial response type.EventT- Event type being delivered.- Returns:
- New
EventStreamAsyncResponseTransformer.Builderinstance.
-
prepare
- Specified by:
preparein interfaceAsyncResponseTransformer<ResponseT,EventT>
-
onResponse
- Specified by:
onResponsein interfaceAsyncResponseTransformer<ResponseT,EventT>
-
onStream
- Specified by:
onStreamin interfaceAsyncResponseTransformer<ResponseT,EventT>
-
exceptionOccurred
- Specified by:
exceptionOccurredin interfaceAsyncResponseTransformer<ResponseT,EventT>
-