Package com.gigaspaces.sync
Class SynchronizationEndpointInterceptor
java.lang.Object
com.gigaspaces.sync.SynchronizationEndpointInterceptor
- Direct Known Subclasses:
AbortOnConsolidationFailureInterceptor,CommitOnConsolidationFailureInterceptor
A synchronization endpoint interceptor used to intercept incoming replication events and do
custom behavior when this events occur.
- Since:
- 9.0.1
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggered after synchronization batch of operations was completed successfully.voidafterTransactionSynchronization(TransactionData transactionData) Triggered after synchronization of a transaction was completed successfully.voidonTransactionConsolidationFailure(ConsolidationParticipantData participantData) Triggered when a consolidation for a specific distributed transaction participant is failed due to timeout or too much backlog accumulation while waiting for other participant parts.
-
Constructor Details
-
SynchronizationEndpointInterceptor
public SynchronizationEndpointInterceptor()
-
-
Method Details
-
onTransactionConsolidationFailure
Triggered when a consolidation for a specific distributed transaction participant is failed due to timeout or too much backlog accumulation while waiting for other participant parts.- Parameters:
participantData- the transaction participant data for which the consolidation failed
-
afterTransactionSynchronization
Triggered after synchronization of a transaction was completed successfully.- Parameters:
transactionData- the transaction data
-
afterOperationsBatchSynchronization
Triggered after synchronization batch of operations was completed successfully.- Parameters:
batchData- the batched operations data
-