Package com.fifa.connectid.sdk
Class PersonDetailsMemoryCache
- java.lang.Object
-
- com.fifa.connectid.sdk.PersonDetailsMemoryCache
-
- All Implemented Interfaces:
PersonDetailsCache
public class PersonDetailsMemoryCache extends Object implements PersonDetailsCache
-
-
Constructor Summary
Constructors Constructor Description PersonDetailsMemoryCache(long durationTillExpireAfterAccess, TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteOlderThan(org.joda.time.Duration duration)Deletes the entries from storage mechanism that are older than given date.PersonDetailsgetByCorrelationId(String correlationId)Get person details with given correlation id from storage mechanism.voidput(PersonDetails personDetails)Puts person details into storage mechanism.
-
-
-
Constructor Detail
-
PersonDetailsMemoryCache
public PersonDetailsMemoryCache(long durationTillExpireAfterAccess, TimeUnit timeUnit)
-
-
Method Detail
-
put
public void put(PersonDetails personDetails)
Description copied from interface:PersonDetailsCachePuts person details into storage mechanism.- Specified by:
putin interfacePersonDetailsCache
-
getByCorrelationId
public PersonDetails getByCorrelationId(String correlationId)
Description copied from interface:PersonDetailsCacheGet person details with given correlation id from storage mechanism.- Specified by:
getByCorrelationIdin interfacePersonDetailsCache- Returns:
- PersonDetails object. If there is no entry associated with the given id, this method should return null.
-
deleteOlderThan
public void deleteOlderThan(org.joda.time.Duration duration)
Description copied from interface:PersonDetailsCacheDeletes the entries from storage mechanism that are older than given date.- Specified by:
deleteOlderThanin interfacePersonDetailsCache
-
-