public class DecisionCacheLocator extends CacheLocator
java.util.WeakHashMap
, the cache is going to be JDK controlled
under the Garbage Collector.Modifier and Type | Class and Description |
---|---|
static class |
DecisionCacheLocator.DecisionCacheLocatorRequest
Specialized version of
RequestCtx that is suited to be cached |
Modifier and Type | Field and Description |
---|---|
protected WeakHashMap<RequestCtx,ResponseCtx> |
correctnessDecisionMap |
static String |
ENHANCE_SPEED |
static String |
IGNORE_ACTION_ID |
static String |
IGNORE_ENVIRONMENT_ID |
static String |
IGNORE_RESOURCE_ID |
static String |
IGNORE_SUBJECT_ID |
static String |
INITIAL_CAPACITY |
static String |
LOAD_FACTOR |
protected LinkedHashMap<RequestCtx,ResponseCtx> |
speedDecisionMap |
contextMap, optionMap, options
ATTRIBUTE_DESIGNATOR_INTEGER_TAG, ATTRIBUTE_DESIGNATOR_SUPPORT_TAG, ATTRIBUTE_SELECTOR_SUPPORT_TAG, ATTRIBUTE_SUPPORTED_ID_TAG, IDENTIFIER_TAG, RESOURCE_CHILD_SUPPORTED_TAG, RESOURCE_DESCENDANT_SUPPORTED_TAG
Constructor and Description |
---|
DecisionCacheLocator() |
Modifier and Type | Method and Description |
---|---|
void |
add(RequestCtx request,
ResponseCtx response)
Add a
RequestCtx and a ResponseCtx to the cache |
ResponseCtx |
get(RequestCtx request)
Get a
ResponseCtx response that we have cached
for a RequestCtx request. |
get, set, setOptions
protected WeakHashMap<RequestCtx,ResponseCtx> correctnessDecisionMap
protected LinkedHashMap<RequestCtx,ResponseCtx> speedDecisionMap
public static final String IGNORE_SUBJECT_ID
public static final String IGNORE_RESOURCE_ID
public static final String IGNORE_ACTION_ID
public static final String IGNORE_ENVIRONMENT_ID
public static final String ENHANCE_SPEED
public static final String INITIAL_CAPACITY
public static final String LOAD_FACTOR
public void add(RequestCtx request, ResponseCtx response)
RequestCtx
and a ResponseCtx
to the cacherequest
- response
- public ResponseCtx get(RequestCtx request)
ResponseCtx
response that we have cached
for a RequestCtx
request.get
in class CacheLocator
Copyright © 2023 JBoss by Red Hat. All rights reserved.