public class ChangeReplicationPacketData extends SingleUidReplicationPacketData implements IReplicationTransactionalPacketEntryData, ITimeToLiveUpdateCallback
AbstractReplicationPacketSingleEntryData.SingleEntryIterator, AbstractReplicationPacketSingleEntryData.SingleFilterIterable
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Boolean> |
forRecovery |
_entryData
Constructor and Description |
---|
ChangeReplicationPacketData() |
ChangeReplicationPacketData(String typeName,
String uid,
Object id,
int version,
int previousVersion,
boolean isTransient,
IEntryData entryData,
OperationID operationID,
int routingHash,
Collection<SpaceEntryMutator> spaceEntryMutators,
IEntryData previousEntryData,
long timeToLive,
long expirationTime,
boolean fromGateway) |
execute, getMainEntryData, getOperationId, getOrderCode, getTypeDescriptor, getUid, isTransient
add, addAll, clear, contains, containsAll, createEmptyMultipleEntryData, deserializeEntryData, getBlobstoreBulkId, getMainTypeName, getMultipleOperationType, getRecoveryFilteringId, getSingleEntryData, getWeight, isEmpty, isFromGateway, isMultiParticipantData, isPartOfBlobstoreBulk, isSingleEntryData, iterator, remove, removeAll, requiresRecoveryDuplicationProtection, requiresRecoveryFiltering, retainAll, serializeEntryData, setBlobstoreBulkId, setWeight, size, toArray, toArray, toFilterEntries, updateTimeToLiveIfNeeded
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOperationId, getOrderCode, getUid, isBackupOnly, isFromGateway, isTransient, requiresRecoveryDuplicationProtection
enabledSmartExternalizableWithReference
equals, hashCode, parallelStream, removeIf, spliterator, stream
public static final ThreadLocal<Boolean> forRecovery
public ChangeReplicationPacketData()
public ChangeReplicationPacketData(String typeName, String uid, Object id, int version, int previousVersion, boolean isTransient, IEntryData entryData, OperationID operationID, int routingHash, Collection<SpaceEntryMutator> spaceEntryMutators, IEntryData previousEntryData, long timeToLive, long expirationTime, boolean fromGateway)
public ReplicationSingleOperationType getOperationType()
getOperationType
in interface IReplicationPacketEntryData
public boolean filterIfNotPresentInReplicaState()
filterIfNotPresentInReplicaState
in interface IReplicationPacketEntryData
public void executeTransactional(IReplicationInContext context, ITransactionalExecutionCallback transactionExecutionCallback, Transaction transaction, boolean twoPhaseCommit) throws Exception
executeTransactional
in interface IReplicationTransactionalPacketEntryData
Exception
public void batchExecuteTransactional(IReplicationInBatchContext context, ITransactionalBatchExecutionCallback transactionExecutionCallback) throws Exception
batchExecuteTransactional
in interface IReplicationTransactionalPacketEntryData
Exception
public boolean beforeDelayedReplication()
IReplicationTransactionalPacketEntryData
beforeDelayedReplication
in interface IReplicationPacketData<IReplicationPacketEntryData>
beforeDelayedReplication
in interface IReplicationTransactionalPacketEntryData
protected void executeImpl(IReplicationInContext context, IReplicationInFacade inReplicationHandler) throws Exception
executeImpl
in class SingleUidReplicationPacketData
Exception
public String getTypeName()
getTypeName
in interface IReplicationPacketEntryData
getTypeName
in class AbstractReplicationPacketSingleEntryData
protected int getFilterObjectType()
getFilterObjectType
in class SingleUidReplicationPacketData
public boolean supportsReplicationFilter()
supportsReplicationFilter
in interface IReplicationPacketData<IReplicationPacketEntryData>
supportsReplicationFilter
in class AbstractReplicationPacketSingleEntryData
public IReplicationFilterEntry toFilterEntry(SpaceTypeManager spaceTypeManager)
toFilterEntry
in interface IReplicationTransactionalPacketEntryData
toFilterEntry
in class SingleUidReplicationPacketData
protected ReplicationOperationType getFilterOldReplicationOpType()
getFilterOldReplicationOpType
in class SingleUidReplicationPacketData
protected ITimeToLiveUpdateCallback getTimeToLiveUpdateCallback()
getTimeToLiveUpdateCallback
in class SingleUidReplicationPacketData
public void updateTimeToLive(long newTimeToLive)
updateTimeToLive
in interface ITimeToLiveUpdateCallback
public long getTimeToLive()
getTimeToLive
in interface ITimeToLiveUpdateCallback
public IEntryData getSecondaryEntryData()
getSecondaryEntryData
in class SingleUidReplicationPacketData
public boolean containsFullEntryData()
containsFullEntryData
in interface IReplicationPacketEntryData
containsFullEntryData
in class SingleUidReplicationPacketData
public Collection<SpaceEntryMutator> getCustomContent()
getCustomContent
in class AbstractReplicationPacketSingleEntryData
public ChangeReplicationPacketData clone()
clone
in interface IReplicationPacketData<IReplicationPacketEntryData>
clone
in interface IReplicationTransactionalPacketEntryData
clone
in class SingleUidReplicationPacketData
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class SingleUidReplicationPacketData
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class SingleUidReplicationPacketData
IOException
ClassNotFoundException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
writeToSwap
in class SingleUidReplicationPacketData
IOException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
readFromSwap
in class SingleUidReplicationPacketData
IOException
ClassNotFoundException
public long getExpirationTime()
Copyright © GigaSpaces.