public class LocalClusterReplicationInTransactionHandler extends AbstractLocalClusterReplicationInHandler implements IReplicationInTransactionHandler, ITransactionalBatchExecutionCallback
_config, _spaceProxy
Constructor and Description |
---|
LocalClusterReplicationInTransactionHandler(ISpaceProxy spaceProxy,
ITransactionManagerProvider transactionManagerProvider,
LocalClusterReplicationSinkConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
changeEntry(IReplicationInBatchContext context,
String typeName,
String uid,
Object id,
int version,
int previousVersion,
long timeToLive,
int routingHash,
Collection<SpaceEntryMutator> spaceEntryMutators,
boolean isTransient,
OperationID operationID) |
void |
inTransaction(IReplicationInContext context,
ITransactionInContext transactionContext)
Handles one phase commit transaction (single participant)
|
void |
inTransactionAbort(IReplicationInContext context,
ITransactionInContext transactionContext)
Handle abort stage of two phase committed transaction
|
void |
inTransactionCommit(IReplicationInContext context,
ITransactionInContext transactionContext)
Handle commit stage of two phase committed transaction
|
void |
inTransactionPrepare(IReplicationInContext context,
ITransactionInContext transactionContext)
Handle prepare stage of two phase committed transaction
|
void |
removeEntry(IReplicationInBatchContext context,
IEntryPacket entryPacket) |
void |
removeEntryByUID(IReplicationInBatchContext context,
String typeName,
String uid,
OperationID operationID) |
void |
updateEntry(IReplicationInBatchContext context,
IEntryPacket entryPacket,
IEntryPacket oldEntryPacket,
boolean partialUpdate,
short flags) |
void |
writeEntry(IReplicationInBatchContext context,
IEntryPacket entryPacket) |
execute, executeIfUidPresent, executeTransactional, extractSourceGatewayName, getSpaceProxy, handleChangeEntry, handleRemoveEntry, handleRemoveEntryByUid, handleUpdateEntry, handleWriteEntry, invokeConflictResolver
public LocalClusterReplicationInTransactionHandler(ISpaceProxy spaceProxy, ITransactionManagerProvider transactionManagerProvider, LocalClusterReplicationSinkConfig config)
public void inTransaction(IReplicationInContext context, ITransactionInContext transactionContext) throws Exception
IReplicationInTransactionHandler
inTransaction
in interface IReplicationInTransactionHandler
Exception
public void inTransactionPrepare(IReplicationInContext context, ITransactionInContext transactionContext) throws Exception
IReplicationInTransactionHandler
inTransactionPrepare
in interface IReplicationInTransactionHandler
Exception
public void inTransactionCommit(IReplicationInContext context, ITransactionInContext transactionContext) throws Exception
IReplicationInTransactionHandler
inTransactionCommit
in interface IReplicationInTransactionHandler
Exception
public void inTransactionAbort(IReplicationInContext context, ITransactionInContext transactionContext) throws Exception
IReplicationInTransactionHandler
inTransactionAbort
in interface IReplicationInTransactionHandler
Exception
public void writeEntry(IReplicationInBatchContext context, IEntryPacket entryPacket) throws Exception
writeEntry
in interface ITransactionalBatchExecutionCallback
Exception
public void removeEntry(IReplicationInBatchContext context, IEntryPacket entryPacket) throws Exception
removeEntry
in interface ITransactionalBatchExecutionCallback
Exception
public void removeEntryByUID(IReplicationInBatchContext context, String typeName, String uid, OperationID operationID) throws Exception
removeEntryByUID
in interface ITransactionalBatchExecutionCallback
Exception
public void updateEntry(IReplicationInBatchContext context, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, boolean partialUpdate, short flags) throws Exception
updateEntry
in interface ITransactionalBatchExecutionCallback
Exception
public void changeEntry(IReplicationInBatchContext context, String typeName, String uid, Object id, int version, int previousVersion, long timeToLive, int routingHash, Collection<SpaceEntryMutator> spaceEntryMutators, boolean isTransient, OperationID operationID) throws Exception
changeEntry
in interface ITransactionalBatchExecutionCallback
Exception
Copyright © GigaSpaces.