Package com.fifa.connectid.sdk
Class CorrelationIdBasedInMemoryCache<TCacheItem>
- java.lang.Object
-
- com.fifa.connectid.sdk.CorrelationIdBasedInMemoryCache<TCacheItem>
-
- All Implemented Interfaces:
CorrelationIdBasedItemContainer<TCacheItem>,CorrelationIdBasedItemProvider<TCacheItem>
public class CorrelationIdBasedInMemoryCache<TCacheItem> extends Object implements CorrelationIdBasedItemContainer<TCacheItem>, CorrelationIdBasedItemProvider<TCacheItem>
-
-
Constructor Summary
Constructors Constructor Description CorrelationIdBasedInMemoryCache(long durationTillExpireAfterAccess, TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TCacheItemgetByCorrelationId(String correlationId)Get item with given correlation id from storage mechanism.voidput(String correlationId, TCacheItem item)
-
-
-
Constructor Detail
-
CorrelationIdBasedInMemoryCache
public CorrelationIdBasedInMemoryCache(long durationTillExpireAfterAccess, TimeUnit timeUnit)
-
-
Method Detail
-
put
public void put(String correlationId, TCacheItem item)
- Specified by:
putin interfaceCorrelationIdBasedItemContainer<TCacheItem>
-
getByCorrelationId
public TCacheItem getByCorrelationId(String correlationId)
Description copied from interface:CorrelationIdBasedItemProviderGet item with given correlation id from storage mechanism.- Specified by:
getByCorrelationIdin interfaceCorrelationIdBasedItemProvider<TCacheItem>- Returns:
- Item object. If there is no entry associated with the given id, this method should return null.
-
-