public class ClusterNodeLocalMapImpl<K,V> extends ConcurrentHashMap8<K,V> implements ConcurrentMap<K,V>, Externalizable
ClusterNodeLocalMapImpl
is similar to ThreadLocal
in a way that its values are not
distributed and kept only on local node (similar like ThreadLocal
values are attached to the
current thread only). Node-local values are used primarily by jobs executed from the remote
nodes to keep intermediate state on the local node between executions.
ClusterNodeLocalMapImpl
is a ConcurrentMap
so it is trivial to use.
You can get an instance of ClusterNodeLocalMapImpl
by calling IgniteCluster.nodeLocalMap()
method.
ConcurrentHashMap8.Action<A>, ConcurrentHashMap8.BiAction<A,B>, ConcurrentHashMap8.BiFun<A,B,T>, ConcurrentHashMap8.DoubleByDoubleToDouble, ConcurrentHashMap8.DoubleToDouble, ConcurrentHashMap8.EntrySetView<K,V>, ConcurrentHashMap8.Fun<A,T>, ConcurrentHashMap8.Generator<T>, ConcurrentHashMap8.IntByIntToInt, ConcurrentHashMap8.IntToInt, ConcurrentHashMap8.KeySetView<K,V>, ConcurrentHashMap8.LongByLongToLong, ConcurrentHashMap8.LongToLong, ConcurrentHashMap8.ObjectByObjectToDouble<A,B>, ConcurrentHashMap8.ObjectByObjectToInt<A,B>, ConcurrentHashMap8.ObjectByObjectToLong<A,B>, ConcurrentHashMap8.ObjectToDouble<A>, ConcurrentHashMap8.ObjectToInt<A>, ConcurrentHashMap8.ObjectToLong<A>, ConcurrentHashMap8.Spliterator<T>, ConcurrentHashMap8.ValuesView<K,V>
Constructor and Description |
---|
ClusterNodeLocalMapImpl()
No-arg constructor is required by externalization.
|
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput in) |
protected Object |
readResolve()
Reconstructs object on unmarshalling.
|
String |
toString()
Returns a string representation of this map.
|
void |
writeExternal(ObjectOutput out) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, entrySpliterator, equals, get, getValueOrDefault, hashCode, isEmpty, keys, keySet, keySet, keySpliterator, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values, valueSpliterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
putIfAbsent, remove, replace, replace
public ClusterNodeLocalMapImpl()
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
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- Thrown in case of unmarshalling error.public String toString()
{}
"). Adjacent
mappings are separated by the characters ", "
(comma
and space). Each key-value mapping is rendered as the key
followed by an equals sign ("=
") followed by the
associated value.toString
in class ConcurrentHashMap8<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017