Interface OptimizePromptResponseHandler
- All Superinterfaces:
EventStreamResponseHandler<OptimizePromptResponse,OptimizedPromptStream>
@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 OptimizePromptResponseHandler
extends EventStreamResponseHandler<OptimizePromptResponse,OptimizedPromptStream>
Response handler for the OptimizePrompt API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forOptimizePromptResponseHandler.static interfaceVisitor for subtypes ofOptimizedPromptStream. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionbuilder()Create aOptimizePromptResponseHandler.Builder, used to create aOptimizePromptResponseHandler.Methods inherited from interface software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandler
complete, exceptionOccurred, onEventStream, responseReceived
-
Method Details
-
builder
Create aOptimizePromptResponseHandler.Builder, used to create aOptimizePromptResponseHandler.
-