| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ScheduledFuture | |
| private static final AtomicReferenceFieldUpdater | |
| pack-priv static final int | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final boolean | |
| protected abstract boolean | |
| pack-priv final List | |
| protected abstract boolean | shouldReplaceAll(E entry)
Returns |
| pack-priv final int | |
| protected void |
| CANCELLED | back to summary |
|---|---|
| private static final ScheduledFuture<?> CANCELLED | |
| FUTURE_UPDATER | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<Cache. | |
| MAX_SUPPORTED_TTL_SECS | back to summary |
|---|---|
| pack-priv static final int MAX_SUPPORTED_TTL_SECS | |
| resolveCache | back to summary |
|---|---|
| private final ConcurrentMap<String, Cache<E>. | |
| Cache | back to summary |
|---|---|
| pack-priv Cache() | |
| cache | back to summary |
|---|---|
| pack-priv final void cache(String hostname, E value, int ttl, EventLoop loop) Cache a value for the given hostname that will automatically expire once the TTL is reached. | |
| clear | back to summary |
|---|---|
| pack-priv final void clear() Remove everything from the cache. | |
| clear | back to summary |
|---|---|
| pack-priv final boolean clear(String hostname) Clear all entries (if anything exists) for the given hostname and return | |
| equals | back to summary |
|---|---|
| protected abstract boolean equals(E entry, E otherEntry) Returns | |
| get | back to summary |
|---|---|
| pack-priv final List Returns all caches entries for the given hostname. | |
| shouldReplaceAll | back to summary |
|---|---|
| protected abstract boolean shouldReplaceAll(E entry) Returns | |
| size | back to summary |
|---|---|
| pack-priv final int size() Return the number of hostnames for which we have cached something. | |
| sortEntries | back to summary |
|---|---|
| protected void sortEntries(String hostname, List<E> entries) Sort the | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile ScheduledFuture | |
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv boolean | |
| public void | |
| private void |
| expirationFuture | back to summary |
|---|---|
| pack-priv volatile ScheduledFuture<?> expirationFuture | |
| hostname | back to summary |
|---|---|
| private final String hostname | |
| Entries | back to summary |
|---|---|
| pack-priv Entries(String hostname) | |
| add | back to summary |
|---|---|
| pack-priv void add(E e, int ttl, EventLoop loop) | |
| clearAndCancel | back to summary |
|---|---|
| pack-priv boolean clearAndCancel() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| scheduleCacheExpirationIfNeeded | back to summary |
|---|---|
| private void scheduleCacheExpirationIfNeeded(int ttl, EventLoop loop) | |