Class ExternalizableEntryPacket
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.transport.AbstractEntryPacket
com.gigaspaces.internal.transport.ExternalizableEntryPacket
- All Implemented Interfaces:
RawEntry,ISwapExternalizable,IEntryPacket,ITransportPacket,Textualizable,SmartExternalizable,Externalizable,Serializable,Cloneable
- Direct Known Subclasses:
ExternalizableTemplatePacket
the entry packet used to move
Externalizable object from the proxy to the server.- Since:
- 6.5
- Author:
- asy ronen
- See Also:
-
Field Summary
Fields inherited from class com.gigaspaces.internal.transport.AbstractEntryPacket
_entryType, _entryTypeCode, _typeDesc, _typeDescChecksum -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor required byExternalizable.ExternalizableEntryPacket(ITypeDesc typeDesc, EntryType entryType, Externalizable object) ExternalizableEntryPacket(ITypeDesc typeDesc, EntryType entryType, Object[] fixedProperties, Map<String, Object> dynamicProperties, String uid, int version, long timeToLive, boolean isTransient) -
Method Summary
Modifier and TypeMethodDescriptiongetFieldValue(int index) Object[]String[]longgetTTL()getUID()intbooleantrue if the entry packet has an array of fixed propertiesbooleanbooleanisFifo()booleanbooleanprotected booleanbooleanprotected voidreadExternal(ObjectInput in, PlatformLogicalVersion version) voidvoidsetCustomQuery(ICustomQuery customQuery) voidsetDynamicProperties(Map<String, Object> dynamicProperties) voidsetFieldsValues(Object[] values) voidsetFieldValue(int index, Object value) voidsetMultipleUIDs(String[] uids) voidsetReturnOnlyUIDs(boolean returnOnlyUIDs) voidsetTTL(long ttl) voidvoidsetVersion(int version) toObject(EntryType entryType, StorageTypeDeserialization storageTypeDeserialization) voidtoText(Textualizer textualizer) protected voidwriteExternal(ObjectOutput out, PlatformLogicalVersion version) voidwriteToSwap(ObjectOutput out) Methods inherited from class com.gigaspaces.internal.transport.AbstractEntryPacket
clone, equals, getCodebase, getEntryType, getExternalEntryImplClassName, getID, getIdImpl, getOperationID, getPreviousVersion, getPropertyValue, getRoutingFieldValue, getTypeDescChecksum, getTypeDescriptor, hashCode, hasPreviousVersion, isSerializeTypeDesc, readExternalImpl, setOperationID, setPreviousVersion, setPropertyValue, setSerializeTypeDesc, setTypeDesc, supportsTypeDescChecksum, toObject, toObject, toObject, toString, validateStorageType, writeExternalImplMethods inherited from class com.gigaspaces.internal.serialization.AbstractExternalizable
readExternal, writeExternalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods inherited from interface com.gigaspaces.internal.transport.IEntryPacket
allNullFieldValues, isHybridMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
ExternalizableEntryPacket
public ExternalizableEntryPacket()Default constructor required byExternalizable. -
ExternalizableEntryPacket
-
ExternalizableEntryPacket
-
-
Method Details
-
getPacketType
-
getTypeName
-
toObject
- Specified by:
toObjectin interfaceITransportPacket- Overrides:
toObjectin classAbstractEntryPacket
-
getFieldValues
-
setFieldsValues
-
getDynamicProperties
-
setDynamicProperties
-
getFieldValue
-
setFieldValue
-
getUID
-
setUID
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
getTTL
public long getTTL() -
setTTL
public void setTTL(long ttl) -
isFifo
public boolean isFifo() -
isTransient
public boolean isTransient() -
isNoWriteLease
public boolean isNoWriteLease() -
getMultipleUIDs
-
setMultipleUIDs
-
isReturnOnlyUids
public boolean isReturnOnlyUids() -
setReturnOnlyUIDs
public void setReturnOnlyUIDs(boolean returnOnlyUIDs) -
getCustomQuery
-
setCustomQuery
-
isTemplate
protected boolean isTemplate() -
hasFixedPropertiesArray
public boolean hasFixedPropertiesArray()true if the entry packet has an array of fixed properties- Specified by:
hasFixedPropertiesArrayin interfaceIEntryPacket- Overrides:
hasFixedPropertiesArrayin classAbstractEntryPacket
-
writeExternal
- Overrides:
writeExternalin classAbstractEntryPacket- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classAbstractEntryPacket- Throws:
IOException
-
readExternal
protected void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException - Overrides:
readExternalin classAbstractEntryPacket- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classAbstractEntryPacket- Throws:
IOExceptionClassNotFoundException
-
toText
- Specified by:
toTextin interfaceTextualizable- Overrides:
toTextin classAbstractEntryPacket
-
isExternalizableEntryPacket
public boolean isExternalizableEntryPacket()- Specified by:
isExternalizableEntryPacketin interfaceIEntryPacket- Overrides:
isExternalizableEntryPacketin classAbstractEntryPacket
-