Package | Description |
---|---|
com.stoyanr.evictor.map | |
com.stoyanr.evictor.scheduler |
Constructor and Description |
---|
ConcurrentHashMapWithTimedEviction(EvictionScheduler<K,V> scheduler)
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(int initialCapacity,
EvictionScheduler<K,V> scheduler)
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 initialCapacity,
float loadFactor,
EvictionScheduler<K,V> scheduler)
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 initialCapacity,
float loadFactor,
int concurrencyLevel,
EvictionScheduler<K,V> scheduler)
Creates a new, empty map that supports timed entry eviction with the
specified initial capacity, load factor, concurrency level, and eviction
scheduler.
|
ConcurrentMapWithTimedEvictionDecorator(ConcurrentMap<K,EvictibleEntry<K,V>> delegate,
EvictionScheduler<K,V> scheduler)
Creates a new map that supports timed entry eviction with the specified
delegate and eviction scheduler.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractQueueEvictionScheduler<K,V>
An abstract
EvictionScheduler which uses an EvictionQueue to
store EvictibleEntry instances in the order they should be evicted. |
class |
DelayedTaskEvictionScheduler<K,V>
A concrete implementation of
AbstractQueueEvictionScheduler which
uses a single delayed task scheduled in an
ScheduledExecutorService to manage the automated
eviction. |
class |
ExecutorServiceEvictionScheduler<K,V>
An
EvictionScheduler which uses a
ScheduledExecutorService to schedule multiple
tasks for entries that should be evicted, one task per entry. |
class |
RegularTaskEvictionScheduler<K,V>
A concrete implementation of
AbstractQueueEvictionScheduler which
uses a single regular task scheduled in an
ScheduledExecutorService to manage the automated
eviction. |
class |
SingleThreadEvictionScheduler<K,V>
A concrete implementation of
AbstractQueueEvictionScheduler which
uses a single thread to manage the automated eviction. |
Copyright © 2012–2016. All rights reserved.