Class GridCacheAtomicReferenceValue<T>
- java.lang.Object
-
- org.apache.ignite.internal.processors.datastructures.AtomicDataStructureValue
-
- org.apache.ignite.internal.processors.datastructures.GridCacheAtomicReferenceValue<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,GridCacheInternal,GridPeerDeployAware
public final class GridCacheAtomicReferenceValue<T> extends AtomicDataStructureValue implements GridPeerDeployAware
Atomic reference value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCacheAtomicReferenceValue()Empty constructor required forExternalizable.GridCacheAtomicReferenceValue(T val)Default 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.Tget()voidreadExternal(ObjectInput in)voidset(T val)StringtoString()DataStructureTypetype()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
GridCacheAtomicReferenceValue
public GridCacheAtomicReferenceValue(T val)
Default constructor.- Parameters:
val- Initial value.
-
GridCacheAtomicReferenceValue
public GridCacheAtomicReferenceValue()
Empty constructor required forExternalizable.
-
-
Method Detail
-
type
public DataStructureType type()
- Specified by:
typein classAtomicDataStructureValue- Returns:
- Data structure type.
-
set
public void set(T val)
- Parameters:
val- New value.
-
get
public T get()
- Returns:
- val Current value.
-
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.
-
-