public class WriteReplicationPacketData extends SingleReplicationPacketData implements IReplicationTransactionalPacketEntryData
AbstractReplicationPacketSingleEntryData.SingleEntryIterator, AbstractReplicationPacketSingleEntryData.SingleFilterIterable
Constructor and Description |
---|
WriteReplicationPacketData() |
WriteReplicationPacketData(IEntryPacket entry,
boolean fromGateway,
long expirationTime) |
WriteReplicationPacketData(IEntryPacket entry,
boolean fromGateway,
long expirationTime,
boolean backupOnly) |
Modifier and Type | Method and Description |
---|---|
void |
batchExecuteTransactional(IReplicationInBatchContext context,
ITransactionalBatchExecutionCallback executionCallback) |
boolean |
beforeDelayedReplication()
If the replication of this packet is delayed due to being asynchronous by nature or the
target was disconnected when the replication packet was generated, this method is called
before the actual replication and the implementor can modify the packet accordingly, mostly
relevant for time to live update.
|
WriteReplicationPacketData |
clone() |
void |
execute(IReplicationInContext context,
IReplicationInFacade inReplicationHandler,
ReplicationPacketDataMediator dataMediator) |
void |
executeTransactional(IReplicationInContext context,
ITransactionalExecutionCallback transactionExecutionCallback,
Transaction transaction,
boolean twoPhaseCommit) |
boolean |
filterIfNotPresentInReplicaState() |
long |
getExpirationTime() |
protected int |
getFilterObjectType(IServerTypeDesc serverTypeDesc) |
protected ReplicationOperationType |
getFilterReplicationOpType() |
ReplicationSingleOperationType |
getOperationType() |
boolean |
isBackupOnly() |
void |
readExternal(ObjectInput in) |
void |
readFromSwap(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeToSwap(ObjectOutput out) |
cloneWithEntryPacket, containsFullEntryData, getEntryPacket, getMainEntryData, getOperationId, getOrderCode, getSecondaryEntryData, getTypeDescriptor, getUid, isTransient, toFilterEntry, updateEntryPacketTimeToLiveIfNeeded
add, addAll, clear, contains, containsAll, createEmptyMultipleEntryData, deserializeEntryData, getBlobstoreBulkId, getCustomContent, getMainTypeName, getMultipleOperationType, getRecoveryFilteringId, getSingleEntryData, getWeight, isEmpty, isFromGateway, isMultiParticipantData, isPartOfBlobstoreBulk, isSingleEntryData, iterator, remove, removeAll, requiresRecoveryDuplicationProtection, requiresRecoveryFiltering, retainAll, serializeEntryData, setBlobstoreBulkId, setWeight, size, supportsReplicationFilter, toArray, toArray, toFilterEntries, updateTimeToLiveIfNeeded
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toFilterEntry
containsFullEntryData, getOperationId, getOrderCode, getUid, isFromGateway, isTransient, requiresRecoveryDuplicationProtection
equals, hashCode, parallelStream, removeIf, spliterator, stream
public WriteReplicationPacketData()
public WriteReplicationPacketData(IEntryPacket entry, boolean fromGateway, long expirationTime)
public WriteReplicationPacketData(IEntryPacket entry, boolean fromGateway, long expirationTime, boolean backupOnly)
public WriteReplicationPacketData clone()
clone
in interface IReplicationPacketData<IReplicationPacketEntryData>
clone
in interface IReplicationTransactionalPacketEntryData
clone
in class SingleReplicationPacketData
public void execute(IReplicationInContext context, IReplicationInFacade inReplicationHandler, ReplicationPacketDataMediator dataMediator) throws Exception
execute
in interface IExecutableReplicationPacketData<IReplicationPacketEntryData>
Exception
public void executeTransactional(IReplicationInContext context, ITransactionalExecutionCallback transactionExecutionCallback, Transaction transaction, boolean twoPhaseCommit) throws Exception
executeTransactional
in interface IReplicationTransactionalPacketEntryData
Exception
public void batchExecuteTransactional(IReplicationInBatchContext context, ITransactionalBatchExecutionCallback executionCallback) throws Exception
batchExecuteTransactional
in interface IReplicationTransactionalPacketEntryData
Exception
public boolean beforeDelayedReplication()
IReplicationTransactionalPacketEntryData
beforeDelayedReplication
in interface IReplicationPacketData<IReplicationPacketEntryData>
beforeDelayedReplication
in interface IReplicationTransactionalPacketEntryData
protected int getFilterObjectType(IServerTypeDesc serverTypeDesc)
getFilterObjectType
in class SingleReplicationPacketData
protected ReplicationOperationType getFilterReplicationOpType()
getFilterReplicationOpType
in class SingleReplicationPacketData
public ReplicationSingleOperationType getOperationType()
getOperationType
in interface IReplicationPacketEntryData
public boolean filterIfNotPresentInReplicaState()
filterIfNotPresentInReplicaState
in interface IReplicationPacketEntryData
public boolean isBackupOnly()
isBackupOnly
in interface IReplicationPacketEntryData
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleReplicationPacketData
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleReplicationPacketData
IOException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
writeToSwap
in class SingleReplicationPacketData
IOException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
readFromSwap
in class SingleReplicationPacketData
IOException
ClassNotFoundException
public long getExpirationTime()
Copyright © GigaSpaces.