public class ReplicationNotificationInTransactionEntryHandler extends Object implements IReplicationInTransactionHandler, ITransactionalBatchExecutionCallback
Constructor and Description |
---|
ReplicationNotificationInTransactionEntryHandler(AbstractReplicationNotificationInEntryHandler entryHandler,
boolean isBatchMode) |
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) |
public ReplicationNotificationInTransactionEntryHandler(AbstractReplicationNotificationInEntryHandler entryHandler, boolean isBatchMode)
public void inTransaction(IReplicationInContext context, ITransactionInContext transactionContext) throws Exception
IReplicationInTransactionHandler
inTransaction
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 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 changeEntry(IReplicationInBatchContext context, String typeName, String uid, Object id, int version, int previousVersion, long timeToLive, int routingHash, Collection<SpaceEntryMutator> spaceEntryMutators, boolean isTransient, OperationID operationID)
changeEntry
in interface ITransactionalBatchExecutionCallback
Copyright © GigaSpaces.