Interface SelectObjectContentResponseHandler.Visitor
-
- Enclosing interface:
- SelectObjectContentResponseHandler
@Generated("software.amazon.awssdk:codegen") public static interface SelectObjectContentResponseHandler.Visitor
Visitor for subtypes ofSelectObjectContentEventStream
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SelectObjectContentResponseHandler.Visitor.Builder
Builder forSelectObjectContentResponseHandler.Visitor
.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static SelectObjectContentResponseHandler.Visitor.Builder
builder()
default void
visitCont(ContinuationEvent event)
Invoked when aContinuationEvent
is encountered.default void
visitDefault(SelectObjectContentEventStream event)
A required "else" or "default" block, invoked when no other more-specific "visit" method is appropriate.default void
visitEnd(EndEvent event)
Invoked when aEndEvent
is encountered.default void
visitProgress(ProgressEvent event)
Invoked when aProgressEvent
is encountered.default void
visitRecords(RecordsEvent event)
Invoked when aRecordsEvent
is encountered.default void
visitStats(StatsEvent event)
Invoked when aStatsEvent
is encountered.
-
-
-
Method Detail
-
builder
static SelectObjectContentResponseHandler.Visitor.Builder builder()
- Returns:
- A new
SelectObjectContentResponseHandler.Visitor.Builder
.
-
visitDefault
default void visitDefault(SelectObjectContentEventStream 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
SelectObjectContentEventStream
. 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
SelectObjectContentEventStream
.
- 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
-
visitRecords
default void visitRecords(RecordsEvent event)
Invoked when aRecordsEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(SelectObjectContentEventStream)
.- Parameters:
event
- Event being visited
-
visitStats
default void visitStats(StatsEvent event)
Invoked when aStatsEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(SelectObjectContentEventStream)
.- Parameters:
event
- Event being visited
-
visitProgress
default void visitProgress(ProgressEvent event)
Invoked when aProgressEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(SelectObjectContentEventStream)
.- Parameters:
event
- Event being visited
-
visitCont
default void visitCont(ContinuationEvent event)
Invoked when aContinuationEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(SelectObjectContentEventStream)
.- Parameters:
event
- Event being visited
-
visitEnd
default void visitEnd(EndEvent event)
Invoked when aEndEvent
is encountered. If this is not overridden, the event will be given tovisitDefault(SelectObjectContentEventStream)
.- Parameters:
event
- Event being visited
-
-