public class ClusterNodeLocalMapImpl<K,V> extends ConcurrentHashMap<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.
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<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() |
void |
writeExternal(ObjectOutput out) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, valuesclonefinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ClusterNodeLocalMapImpl()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionprotected Object readResolve() throws ObjectStreamException
ObjectStreamException - Thrown in case of unmarshalling error.public String toString()
toString in class ConcurrentHashMap<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018