public class SpaceReplicationTransactionEventHandler extends Object implements IReplicationInTransactionHandler, ITransactionalExecutionCallback
Constructor and Description |
---|
SpaceReplicationTransactionEventHandler(SpaceEngine spaceEngine,
AbstractReplicationEntryEventHandler entryHandler) |
Modifier and Type | Method and Description |
---|---|
void |
changeEntry(IReplicationInContext context,
Transaction transaction,
boolean twoPhaseCommit,
String typeName,
String uid,
Object id,
int version,
int previousVersion,
long timeToLive,
int routingHash,
Collection<SpaceEntryMutator> spaceEntryMutators,
boolean isTransient,
OperationID operationID,
IEntryData previousEntryData) |
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(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
IEntryPacket entry) |
void |
removeEntryByUID(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
String uid,
boolean isTransient,
OperationID operationID) |
void |
updateEntry(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
IEntryPacket entry,
IEntryPacket previousEntryPacket,
boolean partialUpdate,
boolean overrideVersion,
short flags) |
void |
writeEntry(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
IEntryPacket entry) |
public SpaceReplicationTransactionEventHandler(SpaceEngine spaceEngine, AbstractReplicationEntryEventHandler entryHandler)
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 UnknownTransactionException, RemoteException
IReplicationInTransactionHandler
inTransactionCommit
in interface IReplicationInTransactionHandler
UnknownTransactionException
RemoteException
public void inTransactionAbort(IReplicationInContext context, ITransactionInContext transactionContext)
IReplicationInTransactionHandler
inTransactionAbort
in interface IReplicationInTransactionHandler
public void writeEntry(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry) throws Exception
writeEntry
in interface ITransactionalExecutionCallback
Exception
public void updateEntry(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry, IEntryPacket previousEntryPacket, boolean partialUpdate, boolean overrideVersion, short flags) throws Exception
updateEntry
in interface ITransactionalExecutionCallback
Exception
public void changeEntry(IReplicationInContext context, Transaction transaction, boolean twoPhaseCommit, String typeName, String uid, Object id, int version, int previousVersion, long timeToLive, int routingHash, Collection<SpaceEntryMutator> spaceEntryMutators, boolean isTransient, OperationID operationID, IEntryData previousEntryData) throws Exception
changeEntry
in interface ITransactionalExecutionCallback
Exception
public void removeEntry(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry) throws Exception
removeEntry
in interface ITransactionalExecutionCallback
Exception
public void removeEntryByUID(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, String uid, boolean isTransient, OperationID operationID) throws Exception
removeEntryByUID
in interface ITransactionalExecutionCallback
Exception
Copyright © GigaSpaces.