Class LocalClusterReplicationInEntryHandler
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterReplicationInHandler
com.gigaspaces.internal.cluster.node.impl.gateway.sink.LocalClusterReplicationInEntryHandler
- All Implemented Interfaces:
IReplicationInEntryHandler
public class LocalClusterReplicationInEntryHandler
extends AbstractLocalClusterReplicationInHandler
implements IReplicationInEntryHandler
A handler for a write operation replicated to a gateway sink component.
- Since:
- 8.0.3
- Author:
- idan
-
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterReplicationInHandler
_config, _spaceProxy -
Constructor Summary
ConstructorsConstructorDescriptionLocalClusterReplicationInEntryHandler(ISpaceProxy spaceProxy, ITransactionManagerProvider transactionManagerProvider, LocalClusterReplicationSinkConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConsumption(IReplicationInContext context, boolean successful, long lastProcessedKey) voidbeforeConsume(IReplicationInContext context) voidinChangeEntry(IReplicationInContext context, String typeName, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID) voidinRemoveEntry(IReplicationInContext context, IEntryPacket entryPacket) voidinRemoveEntryByUID(IReplicationInContext context, String typeName, String uid, boolean isTransient, OperationID operationID) voidinUpdateEntry(IReplicationInContext context, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, boolean partialUpdate, boolean overrideVersion, short flags) voidinWriteEntry(IReplicationInContext context, IEntryPacket entryPacket) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterReplicationInHandler
execute, executeIfUidPresent, executeTransactional, extractSourceGatewayName, getSpaceProxy, handleChangeEntry, handleRemoveEntry, handleRemoveEntryByUid, handleUpdateEntry, handleWriteEntry, invokeConflictResolver
-
Constructor Details
-
LocalClusterReplicationInEntryHandler
public LocalClusterReplicationInEntryHandler(ISpaceProxy spaceProxy, ITransactionManagerProvider transactionManagerProvider, LocalClusterReplicationSinkConfig config)
-
-
Method Details
-
inWriteEntry
- Specified by:
inWriteEntryin interfaceIReplicationInEntryHandler- Throws:
Exception
-
inUpdateEntry
public void inUpdateEntry(IReplicationInContext context, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, boolean partialUpdate, boolean overrideVersion, short flags) throws Exception - Specified by:
inUpdateEntryin interfaceIReplicationInEntryHandler- Throws:
Exception
-
inChangeEntry
public void inChangeEntry(IReplicationInContext context, String typeName, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID) throws Exception - Specified by:
inChangeEntryin interfaceIReplicationInEntryHandler- Throws:
Exception
-
inRemoveEntry
- Specified by:
inRemoveEntryin interfaceIReplicationInEntryHandler- Throws:
Exception
-
inRemoveEntryByUID
public void inRemoveEntryByUID(IReplicationInContext context, String typeName, String uid, boolean isTransient, OperationID operationID) throws Exception - Specified by:
inRemoveEntryByUIDin interfaceIReplicationInEntryHandler- Throws:
Exception
-
afterConsumption
public void afterConsumption(IReplicationInContext context, boolean successful, long lastProcessedKey) - Specified by:
afterConsumptionin interfaceIReplicationInEntryHandler
-
beforeConsume
- Specified by:
beforeConsumein interfaceIReplicationInEntryHandler
-