Class SpaceSynchronizationEndpointSplitter
java.lang.Object
com.gigaspaces.sync.SpaceSynchronizationEndpoint
org.openspaces.persistency.patterns.SpaceSynchronizationEndpointSplitter
A
SpaceSynchronizationEndpoint that implements the synchronization methods. Reshuffles
the given synchronization operations by grouping them based on the types and then calls the
corresponding synchronization method for each type respective synchronization endpoint.- Since:
- 9.5
- Author:
- eitany
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidsplit the batch into multiple batches according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.afterOperationsBatchSynchronization(OperationsBatchData)voidafterTransactionSynchronization(TransactionData transactionData) split the transaction data into multiple transaction data according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.afterTransactionSynchronization(TransactionData).protected SpaceSynchronizationEndpointgetEndpoint(String entry) voidonAddIndex(AddIndexData addIndexData) delegate the add index event to the corresponding interceptorvoidonIntroduceType(IntroduceTypeData introduceTypeData) delegate the introduce type event to the corresponding interceptorvoidsplit the batch into multiple batches according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.onOperationsBatchSynchronization(OperationsBatchData)voidonTransactionSynchronization(TransactionData transactionData) split the transaction data into multiple transaction data according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.onTransactionSynchronization(TransactionData).Methods inherited from class com.gigaspaces.sync.SpaceSynchronizationEndpoint
onTransactionConsolidationFailure
-
Constructor Details
-
SpaceSynchronizationEndpointSplitter
public SpaceSynchronizationEndpointSplitter(ManagedEntriesSpaceSynchronizationEndpoint[] dataSources)
-
-
Method Details
-
getEndpoint
-
onOperationsBatchSynchronization
split the batch into multiple batches according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.onOperationsBatchSynchronization(OperationsBatchData)- Overrides:
onOperationsBatchSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
batchData- the batched operations data
-
afterOperationsBatchSynchronization
split the batch into multiple batches according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.afterOperationsBatchSynchronization(OperationsBatchData)- Overrides:
afterOperationsBatchSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
batchData- the batched operations data
-
onTransactionSynchronization
split the transaction data into multiple transaction data according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.onTransactionSynchronization(TransactionData). This may break transaction atomicity if one of the delegated synchronization endpoint interceptor throws an exception while other did not.- Overrides:
onTransactionSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
transactionData- the transaction data
-
afterTransactionSynchronization
split the transaction data into multiple transaction data according to their entry type and delegate it to the corresponding synchronization endpoint interceptorSpaceSynchronizationEndpoint.afterTransactionSynchronization(TransactionData).- Overrides:
afterTransactionSynchronizationin classSpaceSynchronizationEndpoint- Parameters:
transactionData- the transaction data
-
onAddIndex
delegate the add index event to the corresponding interceptor- Overrides:
onAddIndexin classSpaceSynchronizationEndpoint- Parameters:
addIndexData- The added index data
-
onIntroduceType
delegate the introduce type event to the corresponding interceptor- Overrides:
onIntroduceTypein classSpaceSynchronizationEndpoint- Parameters:
introduceTypeData- The introduced type data
-