Class DefaultDeploymentCache<T>
java.lang.Object
org.flowable.common.engine.impl.persistence.deploy.DefaultDeploymentCache<T>
- All Implemented Interfaces:
DeploymentCache<T>
Default cache: keep everything in memory, unless a limit is set.
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCache with no limitDefaultDeploymentCache
(int limit) Cache which has a hard limit: no more elements will be cached than the limit. -
Method Summary
-
Field Details
-
cache
-
-
Constructor Details
-
DefaultDeploymentCache
public DefaultDeploymentCache()Cache with no limit -
DefaultDeploymentCache
public DefaultDeploymentCache(int limit) Cache which has a hard limit: no more elements will be cached than the limit.
-
-
Method Details
-
get
- Specified by:
get
in interfaceDeploymentCache<T>
-
add
- Specified by:
add
in interfaceDeploymentCache<T>
-
remove
- Specified by:
remove
in interfaceDeploymentCache<T>
-
contains
- Specified by:
contains
in interfaceDeploymentCache<T>
-
clear
public void clear()- Specified by:
clear
in interfaceDeploymentCache<T>
-
getAll
- Specified by:
getAll
in interfaceDeploymentCache<T>
-
size
public int size()- Specified by:
size
in interfaceDeploymentCache<T>
-