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 - the default capacitypublic void setCapacity(int capacity)
capacity - the capacity to setpublic boolean containsKey(Object key)
containsKey in interface RetryContextCachepublic RetryContext get(Object key)
get in interface RetryContextCachepublic void put(Object key, RetryContext context)
put in interface RetryContextCachepublic void remove(Object key)
remove in interface RetryContextCacheCopyright © 2018 SpringSource. All rights reserved.