Class MVCCShellEntryPacket
java.lang.Object
com.gigaspaces.internal.transport.mvcc.MVCCShellEntryPacket
- All Implemented Interfaces:
RawEntry,ISwapExternalizable,IEntryPacket,ITransportPacket,SmartExternalizable,Externalizable,Serializable,Cloneable
MVCC shell entry packet, built from
MVCCShellEntryCacheInfo,
is intended for space recovery with enabled mvcc.
EntryPackets list has same ascending order as in the shell.
Each entryPacket in the list is built from corresponded eHolder in the shell and has to be instanceof
IMVCCEntryPacket (keep mvcc entry metadata)- Since:
- 16.4.0
- Author:
- Davyd Savitskyi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()getFieldValue(int index) Object[]getID()String[]intGets the entry's previous version in space before updategetPropertyValue(String name) longgetTTL()intgetUID()intbooleantrue if the entry packet has an array of fixed propertiesbooleanGets whether this packet has a previous version set.booleanbooleanisFifo()booleanbooleanbooleanvoidvoidvoidsetCustomQuery(ICustomQuery customQuery) voidsetDynamicProperties(Map<String, Object> properties) voidsetFieldsValues(Object[] values) voidsetFieldValue(int index, Object value) voidsetMultipleUIDs(String[] uids) voidsetOperationID(OperationID operationID) voidsetPreviousVersion(int version) Sets the entry's previous version in space before update, relevant for replication update operationvoidsetPropertyValue(String name, Object value) voidsetSerializeTypeDesc(boolean serializeTypeDesc) voidsetTTL(long ttl) voidsetTypeDesc(ITypeDesc typeDesc, boolean serializeTypeDesc) voidvoidsetVersion(int version) booleantoObject(QueryResultTypeInternal resultType) toObject(QueryResultTypeInternal resultType, StorageTypeDeserialization storageTypeDeserialization) toObject(EntryType entryType, StorageTypeDeserialization storageTypeDeserialization) toString()voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.transport.IEntryPacket
allNullFieldValues, isHybridMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MVCCShellEntryPacket
public MVCCShellEntryPacket() -
MVCCShellEntryPacket
-
-
Method Details
-
getEntryVersionsPackets
-
addEntryVersionPacket
-
setUID
- Specified by:
setUIDin interfaceIEntryPacket
-
getID
- Specified by:
getIDin interfaceIEntryPacket
-
getTTL
public long getTTL()- Specified by:
getTTLin interfaceIEntryPacket
-
setTTL
public void setTTL(long ttl) - Specified by:
setTTLin interfaceIEntryPacket
-
clone
- Specified by:
clonein interfaceIEntryPacket- Overrides:
clonein classObject
-
setCustomQuery
- Specified by:
setCustomQueryin interfaceIEntryPacket
-
setPreviousVersion
public void setPreviousVersion(int version) Description copied from interface:IEntryPacketSets the entry's previous version in space before update, relevant for replication update operation- Specified by:
setPreviousVersionin interfaceIEntryPacket
-
getPreviousVersion
public int getPreviousVersion()Description copied from interface:IEntryPacketGets the entry's previous version in space before update- Specified by:
getPreviousVersionin interfaceIEntryPacket
-
hasPreviousVersion
public boolean hasPreviousVersion()Description copied from interface:IEntryPacketGets whether this packet has a previous version set.- Specified by:
hasPreviousVersionin interfaceIEntryPacket
-
hasFixedPropertiesArray
public boolean hasFixedPropertiesArray()Description copied from interface:IEntryPackettrue if the entry packet has an array of fixed properties- Specified by:
hasFixedPropertiesArrayin interfaceIEntryPacket
-
isExternalizableEntryPacket
public boolean isExternalizableEntryPacket()- Specified by:
isExternalizableEntryPacketin interfaceIEntryPacket
-
getOperationID
- Specified by:
getOperationIDin interfaceITransportPacket
-
setOperationID
- Specified by:
setOperationIDin interfaceITransportPacket
-
getEntryType
- Specified by:
getEntryTypein interfaceITransportPacket
-
getPacketType
- Specified by:
getPacketTypein interfaceITransportPacket
-
getTypeName
- Specified by:
getTypeNamein interfaceITransportPacket
-
getCodebase
- Specified by:
getCodebasein interfaceITransportPacket
-
getTypeDescriptor
- Specified by:
getTypeDescriptorin interfaceITransportPacket
-
setTypeDesc
- Specified by:
setTypeDescin interfaceITransportPacket
-
getTypeDescChecksum
public int getTypeDescChecksum()- Specified by:
getTypeDescChecksumin interfaceITransportPacket
-
supportsTypeDescChecksum
public boolean supportsTypeDescChecksum()- Specified by:
supportsTypeDescChecksumin interfaceITransportPacket
-
isSerializeTypeDesc
public boolean isSerializeTypeDesc()- Specified by:
isSerializeTypeDescin interfaceITransportPacket
-
setSerializeTypeDesc
public void setSerializeTypeDesc(boolean serializeTypeDesc) - Specified by:
setSerializeTypeDescin interfaceITransportPacket
-
isFifo
public boolean isFifo()- Specified by:
isFifoin interfaceITransportPacket
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceITransportPacket
-
setVersion
public void setVersion(int version) - Specified by:
setVersionin interfaceITransportPacket
-
isNoWriteLease
public boolean isNoWriteLease()- Specified by:
isNoWriteLeasein interfaceITransportPacket
-
getFieldValues
- Specified by:
getFieldValuesin interfaceITransportPacket
-
setFieldsValues
- Specified by:
setFieldsValuesin interfaceITransportPacket
-
getFieldValue
- Specified by:
getFieldValuein interfaceITransportPacket
-
setFieldValue
- Specified by:
setFieldValuein interfaceITransportPacket
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceITransportPacket
-
setPropertyValue
- Specified by:
setPropertyValuein interfaceITransportPacket
-
getDynamicProperties
- Specified by:
getDynamicPropertiesin interfaceITransportPacket
-
setDynamicProperties
- Specified by:
setDynamicPropertiesin interfaceITransportPacket
-
getMultipleUIDs
- Specified by:
getMultipleUIDsin interfaceITransportPacket
-
setMultipleUIDs
- Specified by:
setMultipleUIDsin interfaceITransportPacket
-
getUID
- Specified by:
getUIDin interfaceITransportPacket
-
toObject
- Specified by:
toObjectin interfaceITransportPacket
-
toObject
public Object toObject(QueryResultTypeInternal resultType, StorageTypeDeserialization storageTypeDeserialization) - Specified by:
toObjectin interfaceITransportPacket
-
toObject
- Specified by:
toObjectin interfaceITransportPacket
-
toObject
- Specified by:
toObjectin interfaceITransportPacket
-
getExternalEntryImplClassName
- Specified by:
getExternalEntryImplClassNamein interfaceITransportPacket
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceITransportPacket
-
getCustomQuery
- Specified by:
getCustomQueryin interfaceITransportPacket
-
getRoutingFieldValue
- Specified by:
getRoutingFieldValuein interfaceITransportPacket
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-