Package org.frankframework.http.rest
Class ApiEhcache
java.lang.Object
org.frankframework.http.rest.ApiEhcache
- All Implemented Interfaces:
IApiCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes all items in the cache.boolean
containsKey
(String key) Checks whether or not an object has previously been stored in the cachevoid
destroy()
Closes the cache.void
flush()
Workaround to avoid NPE after a full reload (/adapterHandlerAsAdmin.do?void
Place an object in the cachevoid
Place an object in the cacheboolean
Remove an object from the cachevoid
setDiskPersistent
(boolean diskPersistent) void
setEternal
(boolean eternal) void
setMaxElementsOnDisk
(int maxElementsOnDisk) void
setOverflowToDisk
(boolean overflowToDisk)
-
Constructor Details
-
ApiEhcache
public ApiEhcache()
-
-
Method Details
-
destroy
public void destroy()Description copied from interface:IApiCache
Closes the cache. -
get
Workaround to avoid NPE after a full reload (/adapterHandlerAsAdmin.do?action=fullreload) get() and isKeyInCache() are not synchronized methods and do not contain any state checking. -
put
Description copied from interface:IApiCache
Place an object in the cache -
put
Description copied from interface:IApiCache
Place an object in the cache -
remove
Description copied from interface:IApiCache
Remove an object from the cache -
containsKey
Description copied from interface:IApiCache
Checks whether or not an object has previously been stored in the cache- Specified by:
containsKey
in interfaceIApiCache
- Parameters:
key
- name of the object to find- Returns:
- true when found
-
flush
public void flush() -
clear
public void clear()Description copied from interface:IApiCache
Removes all items in the cache. -
setEternal
public void setEternal(boolean eternal) -
setOverflowToDisk
public void setOverflowToDisk(boolean overflowToDisk) -
setMaxElementsOnDisk
public void setMaxElementsOnDisk(int maxElementsOnDisk) -
setDiskPersistent
public void setDiskPersistent(boolean diskPersistent)
-