Interface IReplicationParticipantsMediator
- All Known Implementing Classes:
ReplicationParticipantsMediator
public interface IReplicationParticipantsMediator
Responsible for synchronizing replication process logs multiple participants operations in a
reliable async target.
- Since:
- 8.0.4
- Author:
- idan
-
Method Summary
Modifier and TypeMethodDescriptionbooleanabortConsolidation(IReplicationParticipantsMetadata participantsMetadata) Attempts to abort consolidation for the provided meta data.Gets all data for a multiple participants replication operation.booleanisConsumed(Object contextId) voidremove(IReplicationParticipantsMetadata participantsMetadata) Removes multiple participant context from mediator according to the provided meta data.voidsetConsumed(IReplicationParticipantsMetadata participantsMetadata) Sets the provided contextId as consumed.
-
Method Details
-
getAllParticipantsData
Gets all data for a multiple participants replication operation. If not all data arrived the return value is null.- Parameters:
packet- The packet to be added to the context in case not all packets arrived.- Returns:
- All data if all data arrived, otherwise null.
-
isConsumed
- Returns:
- true if the provided contextId associated operation has been consumed.
-
setConsumed
Sets the provided contextId as consumed. -
remove
Removes multiple participant context from mediator according to the provided meta data. -
abortConsolidation
Attempts to abort consolidation for the provided meta data.- Returns:
- true if aborted successfully, false if already consolidated.
-