@Generated(value="software.amazon.awssdk:codegen") public static interface StartStreamTranscriptionResponseHandler.Builder extends EventStreamResponseHandler.Builder<StartStreamTranscriptionResponse,TranscriptResultStream,StartStreamTranscriptionResponseHandler.Builder>
StartStreamTranscriptionResponseHandler
. This can be used to create the
StartStreamTranscriptionResponseHandler
in a more functional way, you may also directly implement the
StartStreamTranscriptionResponseHandler
interface if preferred.Modifier and Type | Method and Description |
---|---|
StartStreamTranscriptionResponseHandler |
build() |
StartStreamTranscriptionResponseHandler.Builder |
subscriber(StartStreamTranscriptionResponseHandler.Visitor visitor)
Sets the subscriber to the
Publisher of events. |
onComplete, onError, onEventStream, onResponse, publisherTransformer, subscriber, subscriber
StartStreamTranscriptionResponseHandler.Builder subscriber(StartStreamTranscriptionResponseHandler.Visitor visitor)
Publisher
of events. The given StartStreamTranscriptionResponseHandler.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.StartStreamTranscriptionResponseHandler build()
StartStreamTranscriptionResponseHandler
implementation that can be used in the
StartStreamTranscription API call.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.