public class PrimaryBackupSpaceReplicationEntryEventHandler extends AbstractSpaceReplicationEntryEventHandler
_engine, _exceptionHandler
Constructor and Description |
---|
PrimaryBackupSpaceReplicationEntryEventHandler(SpaceEngine engine,
boolean isCentralAndExternalDB) |
Modifier and Type | Method and Description |
---|---|
protected void |
changeEntryInSpace(IReplicationInContext context,
Transaction txn,
String uid,
int version,
Collection<SpaceEntryMutator> mutators,
boolean isTransient,
OperationID operationID,
IEntryData previousEntry,
long timeToLive,
boolean twoPhaseCommit,
String typeName) |
protected void |
postChangeExecution(IReplicationInContext context,
IEntryData previousEntryData,
IEntryData modifiedEntryData) |
protected void |
postRemoveExecution(IReplicationInContext context,
AnswerPacket aPacket) |
protected void |
postUpdateExecution(IReplicationInContext context,
IEntryData previousEntryData,
IEntryData currentEntryData) |
protected void |
removeEntryFromSpace(IReplicationInContext context,
Transaction txn,
ITemplatePacket template,
boolean twoPhaseCommit) |
protected boolean |
shouldChangeEntryInSpace(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
String typeName,
String uid,
boolean isTransient,
int version) |
protected boolean |
shouldEvictEntryFromSpace(boolean isTransient) |
protected boolean |
shouldRemoveEntryFromSpace(boolean isTransient) |
protected boolean |
shouldUpdateEntryInSpace(IReplicationInContext context,
Transaction txn,
boolean twoPhaseCommit,
IEntryPacket entry) |
protected void |
updateEntryInSpace(IReplicationInContext context,
Transaction txn,
IEntryPacket entry,
IEntryPacket previousEntry,
boolean partialUpdate,
boolean overrideVersion,
long lease,
boolean twoPhaseCommit) |
protected ExtendedAnswerHolder |
updateOrWrite(IReplicationInContext context,
Transaction transaction,
IEntryPacket entryPacket,
long lease,
int updateModifiers) |
protected void |
writeEntryIntoSpace(IReplicationInContext context,
Transaction txn,
IEntryPacket entry,
long lease,
boolean twoPhaseCommit) |
changeEntry, executeUpdateOperation, getConflictingOperationPolicy, ignoreOperation, inEvictEntry, removeEntry, removeEntryByUid, updateEntry, writeEntry
afterConsumption, beforeConsume, inChangeEntry, inRemoveEntry, inRemoveEntryByUID, inUpdateEntry, inWriteEntry
public PrimaryBackupSpaceReplicationEntryEventHandler(SpaceEngine engine, boolean isCentralAndExternalDB)
protected void writeEntryIntoSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, long lease, boolean twoPhaseCommit) throws Exception
writeEntryIntoSpace
in class AbstractSpaceReplicationEntryEventHandler
Exception
protected ExtendedAnswerHolder updateOrWrite(IReplicationInContext context, Transaction transaction, IEntryPacket entryPacket, long lease, int updateModifiers) throws TransactionException, UnusableEntryException, UnknownTypeException, RemoteException, InterruptedException
protected boolean shouldUpdateEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry)
shouldUpdateEntryInSpace
in class AbstractSpaceReplicationEntryEventHandler
protected void updateEntryInSpace(IReplicationInContext context, Transaction txn, IEntryPacket entry, IEntryPacket previousEntry, boolean partialUpdate, boolean overrideVersion, long lease, boolean twoPhaseCommit) throws UnusableEntryException, UnknownTypeException, TransactionException, RemoteException
protected void postUpdateExecution(IReplicationInContext context, IEntryData previousEntryData, IEntryData currentEntryData)
postUpdateExecution
in class AbstractSpaceReplicationEntryEventHandler
protected void changeEntryInSpace(IReplicationInContext context, Transaction txn, String uid, int version, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID, IEntryData previousEntry, long timeToLive, boolean twoPhaseCommit, String typeName) throws Exception
changeEntryInSpace
in class AbstractSpaceReplicationEntryEventHandler
Exception
protected void postChangeExecution(IReplicationInContext context, IEntryData previousEntryData, IEntryData modifiedEntryData)
postChangeExecution
in class AbstractSpaceReplicationEntryEventHandler
protected boolean shouldChangeEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, String typeName, String uid, boolean isTransient, int version)
shouldChangeEntryInSpace
in class AbstractSpaceReplicationEntryEventHandler
protected void removeEntryFromSpace(IReplicationInContext context, Transaction txn, ITemplatePacket template, boolean twoPhaseCommit) throws TransactionException, UnusableEntryException, UnknownTypeException, RemoteException
protected void postRemoveExecution(IReplicationInContext context, AnswerPacket aPacket)
postRemoveExecution
in class AbstractSpaceReplicationEntryEventHandler
protected boolean shouldRemoveEntryFromSpace(boolean isTransient)
shouldRemoveEntryFromSpace
in class AbstractSpaceReplicationEntryEventHandler
protected boolean shouldEvictEntryFromSpace(boolean isTransient)
shouldEvictEntryFromSpace
in class AbstractSpaceReplicationEntryEventHandler
Copyright © GigaSpaces.