Class GridCacheAtomicStampedValue<T,S>
- java.lang.Object
-
- org.apache.ignite.internal.processors.datastructures.AtomicDataStructureValue
-
- org.apache.ignite.internal.processors.datastructures.GridCacheAtomicStampedValue<T,S>
-
- All Implemented Interfaces:
Externalizable,Serializable,GridCacheInternal,GridPeerDeployAware
public final class GridCacheAtomicStampedValue<T,S> extends AtomicDataStructureValue implements GridPeerDeployAware
Atomic stamped value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCacheAtomicStampedValue()Empty constructor required forExternalizable.GridCacheAtomicStampedValue(T val, S stamp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoaderclassLoader()Gets class loader for the class.Class<?>deployClass()Gets top level user class being deployed.IgniteBiTuple<T,S>get()voidreadExternal(ObjectInput in)voidset(T val, S stamp)Sstamp()StringtoString()DataStructureTypetype()Tvalue()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
GridCacheAtomicStampedValue
public GridCacheAtomicStampedValue(T val, S stamp)
Constructor.- Parameters:
val- Initial value.stamp- Initial stamp.
-
GridCacheAtomicStampedValue
public GridCacheAtomicStampedValue()
Empty constructor required forExternalizable.
-
-
Method Detail
-
type
public DataStructureType type()
- Specified by:
typein classAtomicDataStructureValue- Returns:
- Data structure type.
-
get
public IgniteBiTuple<T,S> get()
- Returns:
- Current value and stamp.
-
value
public T value()
- Returns:
- val Current value.
-
stamp
public S stamp()
- Returns:
- Current stamp.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
deployClass
public Class<?> deployClass()
Gets top level user class being deployed.- Specified by:
deployClassin interfaceGridPeerDeployAware- Returns:
- Top level user deployed class.
-
classLoader
public ClassLoader classLoader()
Gets class loader for the class. This class loader must be able to load the class returned fromGridPeerDeployAware.deployClass()as well as all of its dependencies.Note that in most cases the class loader returned from this method and the class loader for the class returned from
GridPeerDeployAware.deployClass()method will be the same. If they are not the same, it is required that the class loader returned from this method still has to be able to load the deploy class and all its dependencies.- Specified by:
classLoaderin interfaceGridPeerDeployAware- Returns:
- Class loader for the class.
-
-