-
- All Known Implementing Classes:
MPv3.LimitedCapacityEngineIdCacheFactory
- Enclosing class:
- MPv3
public static interface MPv3.EngineIdCacheFactory
TheEngineIdCacheFactory
creates an engine ID cache with upper limit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<Address,OctetString>
createEngineIdMap(EngineIdCacheSize maximumCapacity)
Create a engine ID map with the given maximum capacity.
-
-
-
Method Detail
-
createEngineIdMap
java.util.Map<Address,OctetString> createEngineIdMap(EngineIdCacheSize maximumCapacity)
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.- Parameters:
maximumCapacity
- the upper limit of the number of engine ID mappings in this map.- Returns:
- the created map.
-
-