@Generated(value="software.amazon.awssdk:codegen") public static interface SubscribeToShardResponseHandler.Builder extends EventStreamResponseHandler.Builder<SubscribeToShardResponse,SubscribeToShardEventStream,SubscribeToShardResponseHandler.Builder>
SubscribeToShardResponseHandler
. This can be used to create the
SubscribeToShardResponseHandler
in a more functional way, you may also directly implement the
SubscribeToShardResponseHandler
interface if preferred.Modifier and Type | Method and Description |
---|---|
SubscribeToShardResponseHandler |
build() |
SubscribeToShardResponseHandler.Builder |
subscriber(SubscribeToShardResponseHandler.Visitor visitor)
Sets the subscriber to the
Publisher of events. |
onComplete, onError, onEventStream, onResponse, publisherTransformer, subscriber, subscriber
SubscribeToShardResponseHandler.Builder subscriber(SubscribeToShardResponseHandler.Visitor visitor)
Publisher
of events. The given SubscribeToShardResponseHandler.Visitor
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
EventStreamResponseHandler.Builder.subscriber(java.util.function.Supplier)
instead.visitor
- Visitor that will be invoked for each incoming event.SubscribeToShardResponseHandler build()
SubscribeToShardResponseHandler
implementation that can be used in the SubscribeToShard API
call.Copyright © 2020. All rights reserved.