Package org.jboss.resteasy.core
Class AsynchronousDispatcher.Cache
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,java.util.concurrent.Future<MockHttpResponse>>
-
- org.jboss.resteasy.core.AsynchronousDispatcher.Cache
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.util.concurrent.Future<MockHttpResponse>>
- Enclosing class:
- AsynchronousDispatcher
private static class AsynchronousDispatcher.Cache extends java.util.LinkedHashMap<java.lang.String,java.util.concurrent.Future<MockHttpResponse>>
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxSize
-
Constructor Summary
Constructors Constructor Description Cache(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
removeEldestEntry(java.util.Map.Entry<java.lang.String,java.util.concurrent.Future<MockHttpResponse>> stringFutureEntry)
void
setMaxSize(int maxSize)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
removeEldestEntry
protected boolean removeEldestEntry(java.util.Map.Entry<java.lang.String,java.util.concurrent.Future<MockHttpResponse>> stringFutureEntry)
- Overrides:
removeEldestEntry
in classjava.util.LinkedHashMap<java.lang.String,java.util.concurrent.Future<MockHttpResponse>>
-
setMaxSize
public void setMaxSize(int maxSize)
-
-