public abstract class SelectObjectContentEventVisitor extends Object
SelectObjectContentEvent
without needing to perform "instanceof"
checks and casting.
A visitor can be applied to an entire event stream with
SelectObjectContentEventStream.visitAllEvents(SelectObjectContentEventVisitor)
or to an individual event with
SelectObjectContentEvent.visit(SelectObjectContentEventVisitor)
.Constructor and Description |
---|
SelectObjectContentEventVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
visit(SelectObjectContentEvent.ContinuationEvent event)
Invoked when a
SelectObjectContentEvent.ContinuationEvent is encountered. |
void |
visit(SelectObjectContentEvent.EndEvent event)
Invoked when a
SelectObjectContentEvent.EndEvent is encountered. |
void |
visit(SelectObjectContentEvent.ProgressEvent event)
Invoked when a
ProgressEvent is encountered. |
void |
visit(SelectObjectContentEvent.RecordsEvent event)
Invoked when a
SelectObjectContentEvent.RecordsEvent is encountered. |
void |
visit(SelectObjectContentEvent.StatsEvent event)
Invoked when a
SelectObjectContentEvent.StatsEvent is encountered. |
void |
visitDefault(SelectObjectContentEvent selectEvent)
A required "else" or "default" block, invoked with no other more-specific "visit" method is appropriate.
|
public void visit(SelectObjectContentEvent.RecordsEvent event)
SelectObjectContentEvent.RecordsEvent
is encountered. If this is not overridden, the event will be given to
visitDefault(SelectObjectContentEvent)
.public void visit(SelectObjectContentEvent.ContinuationEvent event)
SelectObjectContentEvent.ContinuationEvent
is encountered. If this is not overridden, the event will be given to
visitDefault(SelectObjectContentEvent)
.public void visit(SelectObjectContentEvent.ProgressEvent event)
ProgressEvent
is encountered. If this is not overridden, the event will be given to
visitDefault(SelectObjectContentEvent)
.public void visit(SelectObjectContentEvent.StatsEvent event)
SelectObjectContentEvent.StatsEvent
is encountered. If this is not overridden, the event will be given to
visitDefault(SelectObjectContentEvent)
.public void visit(SelectObjectContentEvent.EndEvent event)
SelectObjectContentEvent.EndEvent
is encountered. If this is not overridden, the event will be given to
visitDefault(SelectObjectContentEvent)
.public void visitDefault(SelectObjectContentEvent selectEvent)
SelectObjectContentEvent
. These events
can be processed by upgrading the SDK.SelectObjectContentEvent
.selectEvent
- The event that was not handled by a more-specific "visit" method.Copyright © 2022. All rights reserved.