- cancelEviction(EvictibleEntry<K, V>) - Method in interface com.stoyanr.evictor.EvictionScheduler
-
Cancels the eviction of the specified entry from its map.
- cancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
-
Cancels the eviction of the specified entry from its map.
- cancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
-
Cancels the eviction of the specified entry from its map.
- clear() - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Removes all of the mappings from this map.
- com.stoyanr.evictor - package com.stoyanr.evictor
-
- com.stoyanr.evictor.map - package com.stoyanr.evictor.map
-
- com.stoyanr.evictor.queue - package com.stoyanr.evictor.queue
-
- com.stoyanr.evictor.scheduler - package com.stoyanr.evictor.scheduler
-
- compare(EvictibleEntry<K, V>, EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue.EvictibleEntryComparator
-
- ConcurrentHashMapWithTimedEviction<K,V> - Class in com.stoyanr.evictor.map
-
- ConcurrentHashMapWithTimedEviction(int, float, int, EvictionScheduler<K, V>) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity, load factor, concurrency level, and eviction
scheduler.
- ConcurrentHashMapWithTimedEviction(int, float, int) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity, load factor, and concurrency level, and with
the default eviction scheduler.
- ConcurrentHashMapWithTimedEviction(int, float, EvictionScheduler<K, V>) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity, load factor and eviction scheduler, and with
the default concurrencyLevel (16).
- ConcurrentHashMapWithTimedEviction(int, float) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity and load factor, and with the default
concurrencyLevel (16) and eviction scheduler.
- ConcurrentHashMapWithTimedEviction(int, EvictionScheduler<K, V>) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity and eviction scheduler, and with the default
load factor (0.75) and concurrencyLevel (16).
- ConcurrentHashMapWithTimedEviction(int) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity, and with the default load factor (0.75),
concurrencyLevel (16), and eviction scheduler.
- ConcurrentHashMapWithTimedEviction(EvictionScheduler<K, V>) - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with the
specified eviction scheduler, and with the default, initial capacity
(16), load factor (0.75) and concurrencyLevel (16).
- ConcurrentHashMapWithTimedEviction() - Constructor for class com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction
-
Creates a new, empty map that supports timed entry eviction with a
default initial capacity (16), load factor (0.75), concurrencyLevel (16),
and eviction scheduler.
- ConcurrentMapWithTimedEviction<K,V> - Interface in com.stoyanr.evictor
-
- ConcurrentMapWithTimedEvictionDecorator<K,V> - Class in com.stoyanr.evictor.map
-
- ConcurrentMapWithTimedEvictionDecorator(ConcurrentMap<K, EvictibleEntry<K, V>>, EvictionScheduler<K, V>) - Constructor for class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Creates a new map that supports timed entry eviction with the specified
delegate and eviction scheduler.
- containsKey(Object) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Returns true if this map contains a mapping for the specified
key and it has not expired yet.
- containsValue(Object) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Returns true if this map maps one or more keys to the specified
value and at least one of them has not expired yet.
- RegularTaskEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
-
- RegularTaskEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
-
- RegularTaskEvictionScheduler(long, TimeUnit) - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
-
- RegularTaskEvictionScheduler(ScheduledExecutorService, long, TimeUnit) - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
-
Creates a regular task eviction scheduler with the default queue
implementation (see
AbstractQueueEvictionScheduler
) and the
specified scheduled executor service and delay.
- RegularTaskEvictionScheduler(EvictionQueue<K, V>) - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
-
Creates a regular task eviction scheduler with the specified queue, a
ScheduledThreadPoolExecutor
, and a default
delay of 1 millisecond.
- RegularTaskEvictionScheduler(EvictionQueue<K, V>, ScheduledExecutorService, long, TimeUnit) - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
-
Creates a regular task eviction scheduler with the specified queue,
scheduled executor service, and delay.
- remove(Object) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Removes the mapping for a key from this map if it is present.
- remove(Object, Object) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Removes the entry for a key only if currently mapped to a given value.
- removeEntry(EvictibleEntry<K, V>) - Method in interface com.stoyanr.evictor.EvictionQueue
-
Removes the specified evictible entry from the queue.
- removeEntry(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
-
Removes the specified evictible entry from the queue.
- removeEntry(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue
-
Removes the specified evictible entry from the queue.
- replace(K, V, long) - Method in interface com.stoyanr.evictor.ConcurrentMapWithTimedEviction
-
Replaces the entry for a key only if currently mapped to some value, for
the specified duration.
- replace(K, V, V, long) - Method in interface com.stoyanr.evictor.ConcurrentMapWithTimedEviction
-
Replaces the entry for a key only if currently mapped to a given value,
for the specified duration.
- replace(K, V) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Replaces the entry for a key only if currently mapped to some value.
- replace(K, V, long) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Replaces the entry for a key only if currently mapped to some value, for
the specified duration.
- replace(K, V, V) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Replaces the entry for a key only if currently mapped to a given value.
- replace(K, V, V, long) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
-
Replaces the entry for a key only if currently mapped to a given value,
for the specified duration.