Interface ConcurrentMap

All Superinterfaces:
Map
All Known Implementing Classes:
ConcurrentHashMap, ConcurrentReferenceHashMap

public interface ConcurrentMap extends Map
A highly concurrent map.
Author:
Abe White
  • Method Details

    • removeRandom

      Map.Entry removeRandom()
      Remove an arbitrary(not strictly random) entry from the map. This allows implementation of concurrent caches with size ceilings.
      Returns:
      the removed entry, or null if map is empty
    • randomEntryIterator

      Iterator randomEntryIterator()
      Iterate over map entries, beginning at an arbitrary (not strictly random) entry.