Interface RealTimeSnapshotReceiver
- All Superinterfaces:
StreamingResponseReceiver
- All Known Subinterfaces:
RealTimeSnapshotSubscribedReceiver
Streaming receiver for real-time snapshot response data
The current request handling can be terminated in any of these methods by throwing an exception.
Errors originating from the subscriber thread will be sent to
StreamingResponseReceiver.error(StreamingGetException)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when a new snapshot is received.void
Invoked when the snapshot has reached its end.void
header
(RealTimeSnapshotHeader header) Invoked when the header has been processed.void
limit
(RealTimeLimit limit) Invoked with each resource limit set as it is parsedMethods inherited from interface energy.trolie.client.StreamingResponseReceiver
error
-
Method Details
-
beginSnapshot
void beginSnapshot()Invoked when a new snapshot is received. This will be the first method invoked when the snapshot is received. -
header
Invoked when the header has been processed. Will be invoked before processing resources- Parameters:
header
- parsed header
-
limit
Invoked with each resource limit set as it is parsed- Parameters:
limit
- the parsed limit set
-
endSnapshot
void endSnapshot()Invoked when the snapshot has reached its end.
-