Class IDMappingExtCacheDMAPImpl
- java.lang.Object
-
- com.tivoli.am.fim.trustserver.sts.utilities.IDMappingExtCacheDMAPImpl
-
- All Implemented Interfaces:
IDMappingExtCache
public class IDMappingExtCacheDMAPImpl extends java.lang.Object implements IDMappingExtCache
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCACHE_NAMEstatic java.lang.StringIDMappingExtCacheDMAPImpl_java_copyrightstatic java.lang.StringIDMappingExtCacheDMAPImpl_java_sourceCodeIDstatic java.lang.StringMAP_INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclearAll()booleanexists(java.lang.String lookupKey)Returns true if the lookup key exists in the cache, otherwise returns false.java.lang.Stringget(java.lang.String lookupKey)Returns an entry for the given lookup key that was previously stored in our cache.java.lang.StringgetAndRemove(java.lang.String lookupKey)Returns an entry that was previously stored in our cache.voidput(java.lang.String lookupKey, java.lang.String entry, int lifetime)Stores an association for a given state id in a cache.
-
-
-
Field Detail
-
IDMappingExtCacheDMAPImpl_java_sourceCodeID
public static final java.lang.String IDMappingExtCacheDMAPImpl_java_sourceCodeID
- See Also:
- Constant Field Values
-
IDMappingExtCacheDMAPImpl_java_copyright
public static final java.lang.String IDMappingExtCacheDMAPImpl_java_copyright
-
CACHE_NAME
public static java.lang.String CACHE_NAME
-
MAP_INSTANCE
public static java.lang.String MAP_INSTANCE
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String lookupKey)
Description copied from interface:IDMappingExtCacheReturns an entry for the given lookup key that was previously stored in our cache.- Specified by:
getin interfaceIDMappingExtCache- Returns:
- The stored entry, or null if there is no current valid entry for the given lookupKey.
-
put
public void put(java.lang.String lookupKey, java.lang.String entry, int lifetime)Description copied from interface:IDMappingExtCacheStores an association for a given state id in a cache.- Specified by:
putin interfaceIDMappingExtCache- Parameters:
lookupKey- - The key that will be later used to lookup the entry. The max key length is 109 characters.entry- - The entry to store in a cache. The maximum length of entry is specific to the database being used.lifetime- - The length of time we should store the association in seconds
-
getAndRemove
public java.lang.String getAndRemove(java.lang.String lookupKey)
Description copied from interface:IDMappingExtCacheReturns an entry that was previously stored in our cache. The given lookupKey is used to find the entry. The entry is removed from the cache. If the entry does not exist this will return null.- Specified by:
getAndRemovein interfaceIDMappingExtCache- Returns:
- The stored entry, or null if there is no current valid entry for the given lookupKey.
-
exists
public boolean exists(java.lang.String lookupKey)
Description copied from interface:IDMappingExtCacheReturns true if the lookup key exists in the cache, otherwise returns false.- Specified by:
existsin interfaceIDMappingExtCache- Returns:
-
clearAll
public boolean clearAll()
- Returns:
-
-