Module org.snmp4j
Package org.snmp4j.mp

Class MPv3.LimitedCapacityEngineIdCacheFactory

    • Constructor Detail

      • LimitedCapacityEngineIdCacheFactory

        private LimitedCapacityEngineIdCacheFactory()
    • Method Detail

      • createEngineIdMap

        public java.util.Map<Address,​OctetString> createEngineIdMap​(EngineIdCacheSize cacheSize)
        Description copied from interface: MPv3.EngineIdCacheFactory
        Create 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:
        createEngineIdMap in interface MPv3.EngineIdCacheFactory
        Parameters:
        cacheSize - the upper limit of the number of engine ID mappings in this map.
        Returns:
        the created map.