Class SpaceSynchronizationEndpointExceptionHandler
java.lang.Object
com.gigaspaces.sync.SpaceSynchronizationEndpoint
org.openspaces.persistency.patterns.SpaceSynchronizationEndpointExceptionHandler
An exception handler that delegates
SpaceSynchronizationEndpoint
execution and calls the provided PersistencyExceptionHandler
in case of exceptions on synchronization methods.- Since:
- 9.5
- Author:
- eitany
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceSynchronizationEndpointExceptionHandler(SpaceSynchronizationEndpoint interceptor, PersistencyExceptionHandler exceptionHandler) -
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.voidonAddIndex(AddIndexData addIndexData) Triggered on add index synchronization.voidonIntroduceType(IntroduceTypeData introduceTypeData) Triggered on type data introduction.voidTriggered on synchronization batch of operations.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.voidonTransactionSynchronization(TransactionData transactionData) Triggered on synchronization of a transaction.
-
Constructor Details
-
SpaceSynchronizationEndpointExceptionHandler
public SpaceSynchronizationEndpointExceptionHandler(SpaceSynchronizationEndpoint interceptor, PersistencyExceptionHandler exceptionHandler)
-
-
Method Details
-
onTransactionConsolidationFailure
Description copied from class:SpaceSynchronizationEndpointTriggered 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.- Overrides:
onTransactionConsolidationFailurein classSpaceSynchronizationEndpoint- Parameters:
participantData- the transaction participant data for which the consolidation failed
-
onTransactionSynchronization
Description copied from class:SpaceSynchronizationEndpointTriggered on synchronization of a transaction.- Overrides:
onTransactionSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
transactionData- the transaction data
-
afterTransactionSynchronization
Description copied from class:SpaceSynchronizationEndpointTriggered after synchronization of a transaction was completed successfully.- Overrides:
afterTransactionSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
transactionData- the transaction data
-
onOperationsBatchSynchronization
Description copied from class:SpaceSynchronizationEndpointTriggered on synchronization batch of operations.- Overrides:
onOperationsBatchSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
batchData- the batched operations data
-
afterOperationsBatchSynchronization
Description copied from class:SpaceSynchronizationEndpointTriggered after synchronization batch of operations was completed successfully.- Overrides:
afterOperationsBatchSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
batchData- the batched operations data
-
onAddIndex
Description copied from class:SpaceSynchronizationEndpointTriggered on add index synchronization.- Overrides:
onAddIndexin classSpaceSynchronizationEndpoint- Parameters:
addIndexData- The added index data
-
onIntroduceType
Description copied from class:SpaceSynchronizationEndpointTriggered on type data introduction. This method may be invoked more than once for the same type during the life time of this endpoint and it is up to the implementor to handle this scenario gracefully.- Overrides:
onIntroduceTypein classSpaceSynchronizationEndpoint- Parameters:
introduceTypeData- The introduced type data
-