Class EntryPacketServerEntryAdapter
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.view.EntryPacketServerEntryAdapter
- All Implemented Interfaces:
ISwapExternalizable,ICustomTypeDescLoader,IEntryData,SmartExternalizable,ServerEntry,Externalizable,Serializable
public class EntryPacketServerEntryAdapter
extends Object
implements IEntryData, ICustomTypeDescLoader, SmartExternalizable, ISwapExternalizable
- Since:
- 8.0.5
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the entry expiration time.Object[]getFixedPropertyValue(int position) Gets the specified fixed property's value.Gets the entry's type descriptor.longgetTimeToLive(boolean useDummyIfRelevant) intGets the entry version.voidloadTypeDescriptor(SpaceTypeManager typeManager) voidvoidvoidsetDynamicProperties(Map<String, Object> dynamicProperties) voidsetFixedPropertyValue(int index, Object value) voidsetFixedPropertyValues(Object[] values) voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.server.storage.IEntryData
getNumOfFixedProperties, getPathValue, getPropertyValue, isDummyLease, isHybrid, isView, setVersionMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
EntryPacketServerEntryAdapter
public EntryPacketServerEntryAdapter() -
EntryPacketServerEntryAdapter
-
-
Method Details
-
loadTypeDescriptor
- Specified by:
loadTypeDescriptorin interfaceICustomTypeDescLoader
-
getSpaceTypeDescriptor
Description copied from interface:ServerEntryGets the entry's type descriptor.- Specified by:
getSpaceTypeDescriptorin interfaceIEntryData- Specified by:
getSpaceTypeDescriptorin interfaceServerEntry- Returns:
- Current entry's type descriptor.
-
getFixedPropertyValue
Description copied from interface:ServerEntryGets the specified fixed property's value. The returned value is a reference to the actual property kept in the space.- Specified by:
getFixedPropertyValuein interfaceServerEntry- Parameters:
position- Position of requested property.- Returns:
- Requested property's value in current entry.
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
getVersion
public int getVersion()Description copied from interface:ServerEntryGets the entry version.- Specified by:
getVersionin interfaceServerEntry- Returns:
- the entry version.
-
getExpirationTime
public long getExpirationTime()Description copied from interface:ServerEntryGets the entry expiration time.- Specified by:
getExpirationTimein interfaceServerEntry- Returns:
- the entry expiration time.
-
getEntryDataType
- Specified by:
getEntryDataTypein interfaceIEntryData
-
getEntryTypeDesc
- Specified by:
getEntryTypeDescin interfaceIEntryData
-
setFixedPropertyValue
- Specified by:
setFixedPropertyValuein interfaceIEntryData
-
setFixedPropertyValues
- Specified by:
setFixedPropertyValuesin interfaceIEntryData
-
getFixedPropertiesValues
- Specified by:
getFixedPropertiesValuesin interfaceIEntryData
-
getDynamicProperties
- Specified by:
getDynamicPropertiesin interfaceIEntryData
-
getTimeToLive
public long getTimeToLive(boolean useDummyIfRelevant) - Specified by:
getTimeToLivein interfaceIEntryData
-
setDynamicProperties
- Specified by:
setDynamicPropertiesin interfaceIEntryData
-