| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final ExpiringConcurrentCache. | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | ExpiringConcurrentCache(ConcurrentCache.
used to create new instances of objects that are not already available f,used to check whether an object in the cache has expired checkerPublic constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private ExpiringConcurrentCache. | |
| public boolean | containsKey(final K
key to test key)Implements abstract com. Tests whether the cache contains a value for the specified key |
| public V | get(final K
the key the value is associated with key)Implements abstract com. Retrieves a value for the specified key. |
| _cache | back to summary |
|---|---|
| private final ConcurrentMap<K, Future<V>> _cache | |
| _checker | back to summary |
|---|---|
| private final ExpiringConcurrentCache. | |
| _LOGGER | back to summary |
|---|---|
| private static final Logger _LOGGER | |
| ExpiringConcurrentCache | back to summary |
|---|---|
| public ExpiringConcurrentCache(ConcurrentCache. Public constructor.
| |
| _getExpiryChecker | back to summary |
|---|---|
| private ExpiringConcurrentCache. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final K key) Implements abstract com. Doc from com. Tests whether the cache contains a value for the specified key
| |
| get | back to summary |
|---|---|
| public V get(final K key) throws ExecutionException Implements abstract com. Doc from com. Retrieves a value for the specified key. If the value is not already present in the cache, a new instance will be
allocated using the
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the value expired and should be removed from the cache, false otherwisecache key key, V cached value value)Checks whether a cached object expired |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(K key, V value) Checks whether a cached object expired
| |