public final class GridCacheAtomicReferenceValue<T> extends Object implements GridCacheInternal, GridPeerDeployAware, Externalizable
Constructor and Description |
---|
GridCacheAtomicReferenceValue()
Empty constructor required for
Externalizable . |
GridCacheAtomicReferenceValue(T val)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
classLoader()
Gets class loader for the class.
|
Class<?> |
deployClass()
Gets top level user class being deployed.
|
T |
get() |
void |
readExternal(ObjectInput in) |
void |
set(T val) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridCacheAtomicReferenceValue(T val)
val
- Initial value.public GridCacheAtomicReferenceValue()
Externalizable
.public void set(T val)
val
- New value.public T get()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public Class<?> deployClass()
deployClass
in interface GridPeerDeployAware
public ClassLoader classLoader()
GridPeerDeployAware.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.
classLoader
in interface GridPeerDeployAware
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017