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