Interface InvokeModelWithBidirectionalStreamResponseHandler.Builder
- All Superinterfaces:
EventStreamResponseHandler.Builder<InvokeModelWithBidirectionalStreamResponse,InvokeModelWithBidirectionalStreamOutput, InvokeModelWithBidirectionalStreamResponseHandler.Builder>
- Enclosing interface:
InvokeModelWithBidirectionalStreamResponseHandler
@Generated("software.amazon.awssdk:codegen")
public static interface InvokeModelWithBidirectionalStreamResponseHandler.Builder
extends EventStreamResponseHandler.Builder<InvokeModelWithBidirectionalStreamResponse,InvokeModelWithBidirectionalStreamOutput,InvokeModelWithBidirectionalStreamResponseHandler.Builder>
Builder for
InvokeModelWithBidirectionalStreamResponseHandler. This can be used to create the
InvokeModelWithBidirectionalStreamResponseHandler in a more functional way, you may also directly
implement the InvokeModelWithBidirectionalStreamResponseHandler interface if preferred.-
Method Summary
Methods inherited from interface software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler.Builder
onComplete, onError, onEventStream, onResponse, publisherTransformer, subscriber, subscriber
-
Method Details
-
subscriber
InvokeModelWithBidirectionalStreamResponseHandler.Builder subscriber(InvokeModelWithBidirectionalStreamResponseHandler.Visitor visitor) Sets the subscriber to thePublisherof events. The givenInvokeModelWithBidirectionalStreamResponseHandler.Visitorwill 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 usingEventStreamResponseHandler.Builder.subscriber(java.util.function.Supplier)instead.- Parameters:
visitor- Visitor that will be invoked for each incoming event.- Returns:
- This builder for method chaining
-
build
- Returns:
- A
InvokeModelWithBidirectionalStreamResponseHandlerimplementation that can be used in the InvokeModelWithBidirectionalStream API call.
-