Interface RecoveryManager
- All Known Implementing Classes:
RecoveryManagerImpl
public interface RecoveryManager
Defines methods used to manage recovery scenarios
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAliveReceived(int producerId, long aliveGenTimestamp, long receivedTimestamp, boolean subscribed, boolean isSystemSession) Method invoked when the message of type "Alive" is receivedvoidonMessageProcessingEnded(int uniqueMessageProcessorIdentifier, int producerId, Long processedMessageGenTimestamp, String eventId) Method invoked when the AMQP message processing endedvoidonMessageProcessingStarted(int uniqueMessageProcessorIdentifier, int producerId, Long requestId, long now) Method invoked when the AMQP message processing startedvoidonSnapshotCompleteReceived(int producerId, long now, long requestId, MessageInterest sessionMessageInterest) Method invoked when the message of type "SnapshotComplete" is received
-
Method Details
-
onMessageProcessingStarted
void onMessageProcessingStarted(int uniqueMessageProcessorIdentifier, int producerId, Long requestId, long now) Method invoked when the AMQP message processing started- Parameters:
uniqueMessageProcessorIdentifier- a unique representation of the message processor invoking the methodproducerId- the source producer of the messagerequestId- the recovery request id of the message (if present)now- the current timestamp
-
onMessageProcessingEnded
void onMessageProcessingEnded(int uniqueMessageProcessorIdentifier, int producerId, Long processedMessageGenTimestamp, String eventId) Method invoked when the AMQP message processing ended- Parameters:
uniqueMessageProcessorIdentifier- a unique representation of the message processor invoking the methodproducerId- the source producer of the messageprocessedMessageGenTimestamp- the generated timestamp of the processed messageeventId- the eventId associated with feed message (if present)
-
onAliveReceived
void onAliveReceived(int producerId, long aliveGenTimestamp, long receivedTimestamp, boolean subscribed, boolean isSystemSession) Method invoked when the message of type "Alive" is received- Parameters:
producerId- the producer which generated the Alive messagealiveGenTimestamp- the message generation timestampreceivedTimestamp- the timestamp of when the message was receivedsubscribed- an indication if the Alive message was sent from a producer that the SDK is subscribed toisSystemSession- an indication if the alive was received on the system session
-
onSnapshotCompleteReceived
void onSnapshotCompleteReceived(int producerId, long now, long requestId, MessageInterest sessionMessageInterest) Method invoked when the message of type "SnapshotComplete" is received- Parameters:
producerId- the producer which generated the Alive messagenow- the timestamp of when the message was receivedrequestId- the request id that is the cause of the SnapshotCompletesessionMessageInterest- the message interest of the session that received the message
-