Interface InvokeWithResponseStreamResponseHandler.Visitor
-
- Enclosing interface:
- InvokeWithResponseStreamResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface InvokeWithResponseStreamResponseHandler.Visitor
Visitor for subtypes ofInvokeWithResponseStreamResponseEvent
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
InvokeWithResponseStreamResponseHandler.Visitor.Builder
Builder forInvokeWithResponseStreamResponseHandler.Visitor
.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static InvokeWithResponseStreamResponseHandler.Visitor.Builder
builder()
default void
visitDefault(InvokeWithResponseStreamResponseEvent event)
A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default void
visitInvokeComplete(InvokeWithResponseStreamCompleteEvent event)
Invoked when aInvokeWithResponseStreamCompleteEvent
is encountered.default void
visitPayloadChunk(InvokeResponseStreamUpdate event)
Invoked when aInvokeResponseStreamUpdate
is encountered.
-
-
-
Method Detail
-
builder
static InvokeWithResponseStreamResponseHandler.Visitor.Builder builder()
- Returns:
- A new
InvokeWithResponseStreamResponseHandler.Visitor.Builder
.
-
visitDefault
default void visitDefault(InvokeWithResponseStreamResponseEvent event)
A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate. This is invoked under two circumstances:- The event encountered is newer than the current version of the SDK, so no other more-specific "visit"
method could be called. In this case, the provided event will be a generic
InvokeWithResponseStreamResponseEvent
. These events can be processed by upgrading the SDK. - The event is known by the SDK, but the "visit" was not overridden above. In this case, the provided event
will be a specific type of
InvokeWithResponseStreamResponseEvent
.
- Parameters:
event
- The event that was not handled by a more-specific "visit" method.
- The event encountered is newer than the current version of the SDK, so no other more-specific "visit"
method could be called. In this case, the provided event will be a generic
-
visitPayloadChunk
default void visitPayloadChunk(InvokeResponseStreamUpdate event)
Invoked when aInvokeResponseStreamUpdate
is encountered. If this is not overridden, the event will be given tovisitDefault(InvokeWithResponseStreamResponseEvent)
.- Parameters:
event
- Event being visited
-
visitInvokeComplete
default void visitInvokeComplete(InvokeWithResponseStreamCompleteEvent event)
Invoked when aInvokeWithResponseStreamCompleteEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(InvokeWithResponseStreamResponseEvent)
.- Parameters:
event
- Event being visited
-
-