public static interface EventStreamResponseHandler.Builder<ResponseT,EventT,SubBuilderT>
EventStreamResponseHandler.| Modifier and Type | Method and Description | 
|---|---|
SubBuilderT | 
onComplete(Runnable runnable)
Action to invoke when the event stream completes. 
 | 
SubBuilderT | 
onError(Consumer<Throwable> consumer)
Callback to invoke in the event on an error. 
 | 
SubBuilderT | 
onEventStream(Consumer<SdkPublisher<EventT>> onSubscribe)
Callback to invoke when the  
SdkPublisher is available. | 
SubBuilderT | 
onResponse(Consumer<ResponseT> responseConsumer)
Callback to invoke when the initial response is received. 
 | 
SubBuilderT | 
publisherTransformer(Function<SdkPublisher<EventT>,SdkPublisher<EventT>> publisherTransformer)
Allows for optional transformation of the publisher of events before subscribing. 
 | 
SubBuilderT | 
subscriber(Consumer<EventT> eventConsumer)
Sets the subscriber to the  
SdkPublisher of events. | 
SubBuilderT | 
subscriber(Supplier<org.reactivestreams.Subscriber<EventT>> eventSubscriberSupplier)
Subscriber that will subscribe to the  
SdkPublisher of events. | 
SubBuilderT onResponse(Consumer<ResponseT> responseConsumer)
responseConsumer - Callback that will process the initial response.SubBuilderT onError(Consumer<Throwable> consumer)
consumer - Callback that will process any error that occurs.SubBuilderT onComplete(Runnable runnable)
runnable - Action to run on the completion of the event stream.SubBuilderT subscriber(Supplier<org.reactivestreams.Subscriber<EventT>> eventSubscriberSupplier)
SdkPublisher of events. Subscriber
 must be provided.eventSubscriberSupplier - Supplier for a subscriber that will be subscribed to the publisher of events.SubBuilderT subscriber(Consumer<EventT> eventConsumer)
SdkPublisher of events. The given consumer will be called for each event received
 by the publisher. Events are requested sequentially after each event is processed. If you need more control over
 the backpressure strategy consider using subscriber(Supplier) instead.eventConsumer - Consumer that will process incoming events.SubBuilderT onEventStream(Consumer<SdkPublisher<EventT>> onSubscribe)
SdkPublisher is available. This callback must subscribe to the given publisher.
 This method should not be used with subscriber(Supplier) or any of it's overloads.onSubscribe - Callback that will subscribe to the SdkPublisher.SubBuilderT publisherTransformer(Function<SdkPublisher<EventT>,SdkPublisher<EventT>> publisherTransformer)
SdkPublisher of the same type so methods like SdkPublisher.map(Function) and
 SdkPublisher.buffer(int) that change the type cannot be used with this method.publisherTransformer - Function that returns a new SdkPublisher with augmented behavior.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.