Package net.i2p.router
Class PersistentKeyRing
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<Hash,SessionKey>
net.i2p.util.KeyRing
net.i2p.router.PersistentKeyRing
- All Implemented Interfaces:
Serializable
,ConcurrentMap<Hash,SessionKey>
,Map<Hash,SessionKey>
public class PersistentKeyRing extends KeyRing
ConcurrentHashMap with backing in the router.config file.
router.keyring.key.{base64 hash, with = replaced with $}={base64 session key}
Caution - not all HashMap methods are overridden.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Constructor Summary
Constructors Constructor Description PersistentKeyRing(RouterContext ctx)
-
Method Summary
Modifier and Type Method Description SessionKey
put(Hash h, SessionKey sk)
SessionKey
remove(Object o)
Methods inherited from class java.util.concurrent.ConcurrentHashMap
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, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
Constructor Details
-
Method Details
-
put
- Specified by:
put
in interfaceMap<Hash,SessionKey>
- Overrides:
put
in classConcurrentHashMap<Hash,SessionKey>
-
remove
- Specified by:
remove
in interfaceMap<Hash,SessionKey>
- Overrides:
remove
in classConcurrentHashMap<Hash,SessionKey>
-