Class ActiveActiveSpaceReplicationEntryEventHandler
java.lang.Object
com.gigaspaces.internal.cluster.node.handlers.AbstractReplicationEntryEventHandler
com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
com.gigaspaces.internal.cluster.node.impl.handlers.ActiveActiveSpaceReplicationEntryEventHandler
- All Implemented Interfaces:
IReplicationInEntryHandler,IReplicationInEvictEntryHandler
public class ActiveActiveSpaceReplicationEntryEventHandler
extends AbstractSpaceReplicationEntryEventHandler
-
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
_engine, _exceptionHandler -
Constructor Summary
ConstructorsConstructorDescriptionActiveActiveSpaceReplicationEntryEventHandler(SpaceEngine engine, boolean isCentralAndExternalDB) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanshouldChangeEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, String typeName, String uid, boolean isTransient, int version) protected booleanshouldEvictEntryFromSpace(boolean isTransient) protected booleanshouldRemoveEntryFromSpace(boolean isTransient) protected booleanshouldUpdateEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry) protected ExtendedAnswerHolderupdateOrWrite(IReplicationInContext context, Transaction transaction, IEntryPacket entryPacket, long lease, int updateModifiers) Methods inherited from class com.gigaspaces.internal.cluster.node.impl.handlers.AbstractSpaceReplicationEntryEventHandler
changeEntry, changeEntryInSpace, executeUpdateOperation, getConflictingOperationPolicy, ignoreOperation, inEvictEntry, postChangeExecution, postRemoveExecution, postUpdateExecution, removeEntry, removeEntryByUid, removeEntryFromSpace, updateEntry, updateEntryInSpace, writeEntry, writeEntryIntoSpaceMethods inherited from class com.gigaspaces.internal.cluster.node.handlers.AbstractReplicationEntryEventHandler
afterConsumption, beforeConsume, inChangeEntry, inRemoveEntry, inRemoveEntryByUID, inUpdateEntry, inWriteEntry
-
Constructor Details
-
ActiveActiveSpaceReplicationEntryEventHandler
public ActiveActiveSpaceReplicationEntryEventHandler(SpaceEngine engine, boolean isCentralAndExternalDB)
-
-
Method Details
-
updateOrWrite
protected ExtendedAnswerHolder updateOrWrite(IReplicationInContext context, Transaction transaction, IEntryPacket entryPacket, long lease, int updateModifiers) throws TransactionException, UnusableEntryException, UnknownTypeException, RemoteException, InterruptedException -
shouldUpdateEntryInSpace
protected boolean shouldUpdateEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, IEntryPacket entry) throws Exception - Specified by:
shouldUpdateEntryInSpacein classAbstractSpaceReplicationEntryEventHandler- Throws:
Exception
-
shouldChangeEntryInSpace
protected boolean shouldChangeEntryInSpace(IReplicationInContext context, Transaction txn, boolean twoPhaseCommit, String typeName, String uid, boolean isTransient, int version) throws Exception - Specified by:
shouldChangeEntryInSpacein classAbstractSpaceReplicationEntryEventHandler- Throws:
Exception
-
shouldRemoveEntryFromSpace
protected boolean shouldRemoveEntryFromSpace(boolean isTransient) - Specified by:
shouldRemoveEntryFromSpacein classAbstractSpaceReplicationEntryEventHandler
-
shouldEvictEntryFromSpace
protected boolean shouldEvictEntryFromSpace(boolean isTransient) - Specified by:
shouldEvictEntryFromSpacein classAbstractSpaceReplicationEntryEventHandler
-