java.lang.Object
org.snmp4j.mp.MPv3.LimitedCapacityEngineIdCacheFactory
- All Implemented Interfaces:
MPv3.EngineIdCacheFactory
- Enclosing class:
MPv3
private static class MPv3.LimitedCapacityEngineIdCacheFactory
extends Object
implements MPv3.EngineIdCacheFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEngineIdMap(EngineIdCacheSize cacheSize) Create a engine ID map with the given maximum capacity.
-
Constructor Details
-
LimitedCapacityEngineIdCacheFactory
private LimitedCapacityEngineIdCacheFactory()
-
-
Method Details
-
createEngineIdMap
Description copied from interface:MPv3.EngineIdCacheFactoryCreate a engine ID map with the given maximum capacity. If more than those engine IDs are added, the eldest engine IDs will be removed from the map before the new one is added.- Specified by:
createEngineIdMapin interfaceMPv3.EngineIdCacheFactory- Parameters:
cacheSize- the upper limit of the number of engine ID mappings in this map.- Returns:
- the created map.
-