public abstract class AbstractReplicationNotificationInEntryHandler extends Object implements IReplicationInEntryHandler, IReplicationInEntryLeaseExpiredHandler
Modifier and Type | Field and Description |
---|---|
protected long |
_eventID |
protected RemoteEventListener |
_listener |
protected NotifyInfo |
_notifyInfo |
protected NotifyActionType |
_notifyType |
protected IDirectSpaceProxy |
_remoteSpace |
protected AtomicLong |
_sequenceNumber |
Modifier | Constructor and Description |
---|---|
protected |
AbstractReplicationNotificationInEntryHandler(NotifyInfo notifyInfo,
IDirectSpaceProxy remoteSpace,
long eventID,
ITemplatePacket templatePacket) |
Modifier and Type | Method and Description |
---|---|
void |
afterConsumption(IReplicationInContext context,
boolean successful,
long lastProcessedKey) |
void |
beforeConsume(IReplicationInContext context) |
protected static void |
consumeBatchContentIfNotInTransaction(IReplicationInContext context,
boolean inTransaction) |
protected EntryArrivedRemoteEvent |
createEntryArrivedRemoteEvent(IEntryPacket entryPacket,
IEntryPacket oldEntryPacket,
NotifyActionType notifyActionType) |
protected abstract void |
handleEntryImpl(EntryArrivedRemoteEvent entryArrived,
IReplicationInContext context,
boolean inTransaction) |
void |
handleEntryLeaseExpired(IReplicationInContext context,
boolean inTransaction,
IEntryPacket entryPacket) |
void |
handleEntryLeaseExpiredByUID(IReplicationInContext context,
boolean inTransaction,
String className,
String uid,
boolean isTransient,
OperationID operationID) |
void |
handleRemoveEntry(IReplicationInContext context,
boolean inTransaction,
IEntryPacket entryPacket) |
void |
handleRemoveEntryByUID(IReplicationInContext context,
boolean inTransaction,
String uid,
boolean isTransient,
OperationID operationID) |
void |
handleUpdateEntry(IReplicationInContext context,
boolean inTransaction,
IEntryPacket entryPacket,
IEntryPacket oldEntryPacket,
boolean partialUpdate,
boolean overrideVersion,
short flags) |
void |
handleWriteEntry(IReplicationInContext context,
boolean inTransaction,
IEntryPacket entryPacket) |
void |
inChangeEntry(IReplicationInContext context,
String typeName,
String uid,
Object id,
int version,
int previousVersion,
int routingHash,
long timeToLive,
Collection<SpaceEntryMutator> mutators,
boolean isTransient,
OperationID operationID) |
void |
inEntryLeaseExpired(IReplicationInContext context,
IEntryPacket entryPacket) |
void |
inEntryLeaseExpiredByUID(IReplicationInContext context,
String className,
String uid,
boolean isTransient,
OperationID operationID) |
void |
inRemoveEntry(IReplicationInContext context,
IEntryPacket entryPacket) |
void |
inRemoveEntryByUID(IReplicationInContext context,
String typeName,
String uid,
boolean isTransient,
OperationID operationID) |
void |
inUpdateEntry(IReplicationInContext context,
IEntryPacket entryPacket,
IEntryPacket oldEntryPacket,
boolean partialUpdate,
boolean overrideVersion,
short flags) |
void |
inWriteEntry(IReplicationInContext context,
IEntryPacket entryPacket) |
protected final NotifyInfo _notifyInfo
protected final NotifyActionType _notifyType
protected final RemoteEventListener _listener
protected final IDirectSpaceProxy _remoteSpace
protected final AtomicLong _sequenceNumber
protected final long _eventID
protected AbstractReplicationNotificationInEntryHandler(NotifyInfo notifyInfo, IDirectSpaceProxy remoteSpace, long eventID, ITemplatePacket templatePacket)
protected static void consumeBatchContentIfNotInTransaction(IReplicationInContext context, boolean inTransaction)
public void handleEntryLeaseExpiredByUID(IReplicationInContext context, boolean inTransaction, String className, String uid, boolean isTransient, OperationID operationID)
public void handleEntryLeaseExpired(IReplicationInContext context, boolean inTransaction, IEntryPacket entryPacket)
public void handleUpdateEntry(IReplicationInContext context, boolean inTransaction, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, boolean partialUpdate, boolean overrideVersion, short flags)
public void handleRemoveEntry(IReplicationInContext context, boolean inTransaction, IEntryPacket entryPacket)
public void handleRemoveEntryByUID(IReplicationInContext context, boolean inTransaction, String uid, boolean isTransient, OperationID operationID)
public void handleWriteEntry(IReplicationInContext context, boolean inTransaction, IEntryPacket entryPacket)
protected abstract void handleEntryImpl(EntryArrivedRemoteEvent entryArrived, IReplicationInContext context, boolean inTransaction)
protected EntryArrivedRemoteEvent createEntryArrivedRemoteEvent(IEntryPacket entryPacket, IEntryPacket oldEntryPacket, NotifyActionType notifyActionType)
public void inEntryLeaseExpiredByUID(IReplicationInContext context, String className, String uid, boolean isTransient, OperationID operationID)
inEntryLeaseExpiredByUID
in interface IReplicationInEntryLeaseExpiredHandler
public void inEntryLeaseExpired(IReplicationInContext context, IEntryPacket entryPacket)
inEntryLeaseExpired
in interface IReplicationInEntryLeaseExpiredHandler
public void inUpdateEntry(IReplicationInContext context, IEntryPacket entryPacket, IEntryPacket oldEntryPacket, boolean partialUpdate, boolean overrideVersion, short flags) throws Exception
inUpdateEntry
in interface IReplicationInEntryHandler
Exception
public void inRemoveEntry(IReplicationInContext context, IEntryPacket entryPacket) throws Exception
inRemoveEntry
in interface IReplicationInEntryHandler
Exception
public void inRemoveEntryByUID(IReplicationInContext context, String typeName, String uid, boolean isTransient, OperationID operationID) throws Exception
inRemoveEntryByUID
in interface IReplicationInEntryHandler
Exception
public void inWriteEntry(IReplicationInContext context, IEntryPacket entryPacket) throws Exception
inWriteEntry
in interface IReplicationInEntryHandler
Exception
public void inChangeEntry(IReplicationInContext context, String typeName, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators, boolean isTransient, OperationID operationID) throws Exception
inChangeEntry
in interface IReplicationInEntryHandler
Exception
public void afterConsumption(IReplicationInContext context, boolean successful, long lastProcessedKey)
afterConsumption
in interface IReplicationInEntryHandler
public void beforeConsume(IReplicationInContext context)
beforeConsume
in interface IReplicationInEntryHandler
Copyright © GigaSpaces.