A C D E G H I K N O P R S T 

A

AbstractQueueEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
An abstract EvictionScheduler which uses an EvictionQueue to store EvictibleEntry instances in the order they should be evicted.
AbstractQueueEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Creates an eviction scheduler with a NavigableMapEvictionQueue.
AbstractQueueEvictionScheduler(EvictionQueue<K, V>) - Constructor for class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Creates an eviction scheduler with the specified queue.

C

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
A ConcurrentMapWithTimedEviction which conforms to the ConcurrentHashMap specification.
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
A ConcurrentMap that supports timed entry eviction.
ConcurrentMapWithTimedEvictionDecorator<K,V> - Class in com.stoyanr.evictor.map
A ConcurrentMapWithTimedEviction implementation which decorates an existing ConcurrentMap implementation.
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.

D

DEFAULT_DELAY - Static variable in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
 
DEFAULT_THREAD_POOL_SIZE - Static variable in class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
 
DEFAULT_THREAD_POOL_SIZE - Static variable in class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
 
DEFAULT_THREAD_POOL_SIZE - Static variable in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
 
DEFAULT_TIME_UNIT - Static variable in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
 
DelayedTaskEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
A concrete implementation of AbstractQueueEvictionScheduler which uses a single delayed task scheduled in an ScheduledExecutorService to manage the automated eviction.
DelayedTaskEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Creates a delayed task eviction scheduler with the default queue implementation (see AbstractQueueEvictionScheduler) and a ScheduledThreadPoolExecutor.
DelayedTaskEvictionScheduler(ScheduledExecutorService) - Constructor for class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Creates a delayed task eviction scheduler with the default queue implementation (see AbstractQueueEvictionScheduler) and the specified scheduled executor service.
DelayedTaskEvictionScheduler(EvictionQueue<K, V>) - Constructor for class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Creates a delayed task eviction scheduler with the specified queue and a ScheduledThreadPoolExecutor.
DelayedTaskEvictionScheduler(EvictionQueue<K, V>, ScheduledExecutorService) - Constructor for class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Creates a delayed task eviction scheduler with the specified queue and scheduled executor service.

E

entrySet() - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Returns a Set view of the mappings contained in this map.
evict(boolean) - Method in class com.stoyanr.evictor.map.EvictibleEntry
Actually evicts the entry from its map by calling the evict method on the map, passing the specified flag.
evictEntries() - Method in interface com.stoyanr.evictor.EvictionQueue
Evicts all entries that have expired from their maps and removes them from the queue.
evictEntries() - Method in class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Evicts all entries that have expired from their maps and removes them from the queue.
evictEntries() - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue
Evicts all entries that have expired from their maps and removes them from the queue.
evictEntries() - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Evicts all entries by calling the evictEntries method on the queue.
EvictibleEntry<K,V> - Class in com.stoyanr.evictor.map
An evictible map Map.Entry used by ConcurrentMapWithTimedEvictionDecorator and other interfaces and classes in this package.
EvictionQueue<K,V> - Interface in com.stoyanr.evictor
A priority queue of evictible entries used by AbstractQueueEvictionScheduler to store entries that should be evicted automatically in the order in which they should be evicted.
EvictionScheduler<K,V> - Interface in com.stoyanr.evictor
An eviction scheduler used by ConcurrentMapWithTimedEvictionDecorator to automatically evict entries upon expiration.
ExecutorServiceEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
An EvictionScheduler which uses a ScheduledExecutorService to schedule multiple tasks for entries that should be evicted, one task per entry.
ExecutorServiceEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
Creates an eviction scheduler with a ScheduledThreadPoolExecutor.
ExecutorServiceEvictionScheduler(ScheduledExecutorService) - Constructor for class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
Creates an eviction scheduler with the specified scheduled executor service.

G

get(Object) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key or it has expired.
getData() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns the additional data associated with this entry.
getEvictionTime() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns the eviction time of this entry, in nanoseconds.
getKey() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns the key corresponding to this entry.
getNextEvictionTime() - Method in interface com.stoyanr.evictor.EvictionQueue
Returns the next eviction time of all entries contained in the queue, or 0 if the queue is empty.
getNextEvictionTime() - Method in class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Returns the next eviction time of all entries contained in the queue, or 0 if the queue is empty.
getNextEvictionTime() - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue
Returns the next eviction time of all entries contained in the queue, or 0 if the queue is empty.
getNextEvictionTime() - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Gets the time of the next scheduled eviction, in nanoseconds.
getValue() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns the value corresponding to this entry.

H

hasEntries() - Method in interface com.stoyanr.evictor.EvictionQueue
Returns true if this queue contains any entries.
hasEntries() - Method in class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Returns true if this queue contains any entries.
hasEntries() - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue
Returns true if this queue contains any entries.
hasScheduledEvictions() - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Returns true if there are any evictions scheduled.

I

isEvictible() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns true if the entry is evictible.

K

keySet() - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Returns a Set view of the keys contained in this map.

N

NavigableMapEvictionQueue<K,V> - Class in com.stoyanr.evictor.queue
An EvictionQueue which uses a ConcurrentNavigableMap to store its entries.
NavigableMapEvictionQueue() - Constructor for class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Creates a navigable map eviction queue with a ConcurrentSkipListMap.
NavigableMapEvictionQueue(ConcurrentNavigableMap<Long, EvictibleEntry<K, V>>) - Constructor for class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Creates a navigable map eviction queue with the specified map.

O

onCancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Actually cancels the eviction of the specified entry.
onCancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Actually cancels the eviction of the specified entry.
onCancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Actually cancels the eviction of the specified entry.
onCancelEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Actually cancels the eviction of the specified entry.
onEvictEntries() - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Performs additional activities upon automated eviction of entries, if needed.
onEvictEntries() - Method in class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Performs additional activities upon automated eviction of entries, if needed.
onEvictEntries() - Method in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Performs additional activities upon automated eviction of entries, if needed.
onEvictEntries() - Method in class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Performs additional activities upon automated eviction of entries, if needed.
onScheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Actually schedules the eviction of the specified entry.
onScheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Actually schedules the eviction of the specified entry.
onScheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Actually schedules the eviction of the specified entry.
onScheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Actually schedules the eviction of the specified entry.

P

PriorityEvictionQueue<K,V> - Class in com.stoyanr.evictor.queue
An EvictionQueue which uses a Queue to store its entries.
PriorityEvictionQueue(int) - Constructor for class com.stoyanr.evictor.queue.PriorityEvictionQueue
Creates a priority eviction queue with a PriorityBlockingQueue with the specified initial capacity.
PriorityEvictionQueue(Queue<EvictibleEntry<K, V>>) - Constructor for class com.stoyanr.evictor.queue.PriorityEvictionQueue
Creates a priority eviction queue with the specified queue.
PriorityEvictionQueue.EvictibleEntryComparator<K,V> - Class in com.stoyanr.evictor.queue
A comparator that compares EvictibleEntry instances based on their eviction time.
PriorityEvictionQueue.EvictibleEntryComparator() - Constructor for class com.stoyanr.evictor.queue.PriorityEvictionQueue.EvictibleEntryComparator
 
put(K, V, long) - Method in interface com.stoyanr.evictor.ConcurrentMapWithTimedEviction
Associates the specified value with the specified key in this map for the specified duration (optional operation).
put(K, V) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Associates the specified value with the specified key in this map.
put(K, V, long) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Associates the specified value with the specified key in this map for the specified duration.
putEntry(EvictibleEntry<K, V>) - Method in interface com.stoyanr.evictor.EvictionQueue
Puts the specified evictible entry into the queue.
putEntry(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.queue.NavigableMapEvictionQueue
Puts the specified evictible entry into the queue.
putEntry(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.queue.PriorityEvictionQueue
Puts the specified evictible entry into the queue.
putIfAbsent(K, V, long) - Method in interface com.stoyanr.evictor.ConcurrentMapWithTimedEviction
If the specified key is not already associated with a value, associate it with the given value for the specified duration.
putIfAbsent(K, V) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
If the specified key is not already associated with a value, associate it with the given value.
putIfAbsent(K, V, long) - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
If the specified key is not already associated with a value, associate it with the given value for the specified duration.

R

RegularTaskEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
A concrete implementation of AbstractQueueEvictionScheduler which uses a single regular task scheduled in an ScheduledExecutorService to manage the automated eviction.
RegularTaskEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Creates a regular task eviction scheduler with the default queue implementation (see AbstractQueueEvictionScheduler), a ScheduledThreadPoolExecutor, and a default delay of 1 millisecond.
RegularTaskEvictionScheduler(long, TimeUnit) - Constructor for class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Creates a regular task eviction scheduler with the default queue implementation (see AbstractQueueEvictionScheduler), a ScheduledThreadPoolExecutor, and the specified delay.
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.

S

scheduleEviction(EvictibleEntry<K, V>) - Method in interface com.stoyanr.evictor.EvictionScheduler
Schedules the eviction of the specified entry from its map.
scheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.AbstractQueueEvictionScheduler
Schedules the eviction of the specified entry from its map.
scheduleEviction(EvictibleEntry<K, V>) - Method in class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
Schedules the eviction of the specified entry from its map.
setData(Object) - Method in class com.stoyanr.evictor.map.EvictibleEntry
Sets the additional data associated with this entry.
setValue(V) - Method in class com.stoyanr.evictor.map.EvictibleEntry
Replaces the value corresponding to this entry with the specified value.
shouldEvict() - Method in class com.stoyanr.evictor.map.EvictibleEntry
Returns true if the entry should be evicted.
shutdown() - Method in interface com.stoyanr.evictor.EvictionScheduler
Immediately shuts down the scheduler and cancels all pending evictions.
shutdown() - Method in class com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler
Immediately shuts down the scheduler and cancels all pending evictions.
shutdown() - Method in class com.stoyanr.evictor.scheduler.ExecutorServiceEvictionScheduler
Immediately shuts down the scheduler and cancels all pending evictions.
shutdown() - Method in class com.stoyanr.evictor.scheduler.RegularTaskEvictionScheduler
Immediately shuts down the scheduler and cancels all pending evictions.
shutdown() - Method in class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Immediately shuts down the scheduler and cancels all pending evictions.
SingleThreadEvictionScheduler<K,V> - Class in com.stoyanr.evictor.scheduler
A concrete implementation of AbstractQueueEvictionScheduler which uses a single thread to manage the automated eviction.
SingleThreadEvictionScheduler() - Constructor for class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Creates a single thread eviction scheduler with the default queue implementation (see AbstractQueueEvictionScheduler).
SingleThreadEvictionScheduler(EvictionQueue<K, V>) - Constructor for class com.stoyanr.evictor.scheduler.SingleThreadEvictionScheduler
Creates a single thread eviction scheduler with the specified queue.
size() - Method in class com.stoyanr.evictor.map.ConcurrentMapWithTimedEvictionDecorator
Returns the number of key-value mappings in this map.

T

toString() - Method in class com.stoyanr.evictor.map.EvictibleEntry
 
A C D E G H I K N O P R S T 

Copyright © 2012–2016. All rights reserved.