Package org.openspaces.persistency.kafka
Class KafkaSpaceSynchronizationEndpoint
java.lang.Object
com.gigaspaces.sync.SpaceSynchronizationEndpoint
org.openspaces.persistency.kafka.KafkaSpaceSynchronizationEndpoint
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaSpaceSynchronizationEndpoint(SpaceSynchronizationEndpoint primaryEndpoint, Map<String, SpaceSynchronizationEndpoint> secondaryEndpoints, Properties kafkaProps, String topic) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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.Methods inherited from class com.gigaspaces.sync.SpaceSynchronizationEndpoint
afterOperationsBatchSynchronization, afterTransactionSynchronization
-
Field Details
-
KAFKA_TIMEOUT
public static final long KAFKA_TIMEOUT- See Also:
-
-
Constructor Details
-
KafkaSpaceSynchronizationEndpoint
public KafkaSpaceSynchronizationEndpoint(SpaceSynchronizationEndpoint primaryEndpoint, Map<String, SpaceSynchronizationEndpoint> secondaryEndpoints, Properties kafkaProps, String topic)
-
-
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
-
onOperationsBatchSynchronization
Description copied from class:SpaceSynchronizationEndpointTriggered on synchronization batch of operations.- Overrides:
onOperationsBatchSynchronizationin 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
-
close
public void close()
-