Interface InvokeWithResponseStreamResponseHandler
- All Superinterfaces:
EventStreamResponseHandler<InvokeWithResponseStreamResponse,InvokeWithResponseStreamResponseEvent>
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@SdkAdvancedApi(cautionWhen=IMPLEMENTED,
guidance="onEventStream() receives a reactive-streams Publisher; the implementation must subscribe to it and call Subscription.request(n) to pull events -- a handler that never subscribes or never requests stalls the stream and hangs the operation. On retry the SDK calls onEventStream() again with a new Publisher; the implementation must reset accumulated state or throw to refuse the retry. Free resources in exceptionOccurred().",
saferAlternative="Prefer the generated builder() with subscriber(Consumer) or subscriber(Visitor) which handle subscription, backpressure, and retry-state reset automatically.")
public interface InvokeWithResponseStreamResponseHandler
extends EventStreamResponseHandler<InvokeWithResponseStreamResponse,InvokeWithResponseStreamResponseEvent>
Response handler for the InvokeWithResponseStream API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forInvokeWithResponseStreamResponseHandler.static interfaceVisitor for subtypes ofInvokeWithResponseStreamResponseEvent. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionbuilder()Create aInvokeWithResponseStreamResponseHandler.Builder, used to create aInvokeWithResponseStreamResponseHandler.Methods inherited from interface software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler
complete, exceptionOccurred, onEventStream, responseReceived
-
Method Details
-
builder
Create aInvokeWithResponseStreamResponseHandler.Builder, used to create aInvokeWithResponseStreamResponseHandler.
-