public interface RecoveryOperation
RecoveryOperation
interface defines how the events be managed.
Any sub-system leveraging Recovery needs to implement the interface to delete
or replay the event data in the sub-system with request from Recovery.
The implementation needs to be registered.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
void |
deleteEvent(java.lang.String eventId,
java.util.Properties context)
Delete the specified event.
|
void |
replayEvent(java.lang.String eventId,
EventData replayData,
java.util.Properties context)
Replay the specified event.
|
EventData |
retrieveEvent(java.lang.String eventId,
java.util.Properties context)
Return the detailed information of the event.
|
static final java.lang.String COPYRIGHT
EventData retrieveEvent(java.lang.String eventId, java.util.Properties context) throws RecoveryException
eventId
- context
- RecoveryException
void deleteEvent(java.lang.String eventId, java.util.Properties context) throws RecoveryException
eventId
- context
- RecoveryException
void replayEvent(java.lang.String eventId, EventData replayData, java.util.Properties context) throws RecoveryException
eventId
- replayData
- modified data, specify null if no modification requiredcontext
- RecoveryException