public class MapRetryContextCache extends Object implements RetryContextCache
RetryContextCache
. The map backing the
cache of contexts is synchronized.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY
Default value for maximum capacity of the cache.
|
Constructor and Description |
---|
MapRetryContextCache()
Create a
MapRetryContextCache with default capacity. |
MapRetryContextCache(int defaultCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
RetryContext |
get(Object key) |
void |
put(Object key,
RetryContext context) |
void |
remove(Object key) |
void |
setCapacity(int capacity)
Public setter for the capacity.
|
public static final int DEFAULT_CAPACITY
public MapRetryContextCache()
MapRetryContextCache
with default capacity.public MapRetryContextCache(int defaultCapacity)
defaultCapacity
- public void setCapacity(int capacity)
capacity
- the capacity to setpublic boolean containsKey(Object key)
containsKey
in interface RetryContextCache
public RetryContext get(Object key)
get
in interface RetryContextCache
public void put(Object key, RetryContext context)
put
in interface RetryContextCache
public void remove(Object key)
remove
in interface RetryContextCache
Copyright © 2014 SpringSource. All rights reserved.