org.activiti.engine.impl.persistence.deploy
类 DefaultDeploymentCache<T>

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.deploy.DefaultDeploymentCache<T>
所有已实现的接口:
DeploymentCache<T>

public class DefaultDeploymentCache<T>
extends Object
implements DeploymentCache<T>

Default cache: keep everything in memory, unless a limit is set.

作者:
Joram Barrez

字段摘要
protected  Map<String,T> cache
           
 
构造方法摘要
DefaultDeploymentCache()
          Cache with no limit
DefaultDeploymentCache(int limit)
          Cache which has a hard limit: no more elements will be cached than the limit.
 
方法摘要
 void add(String id, T obj)
           
 void clear()
           
 T get(String id)
           
 void remove(String id)
           
 int size()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

cache

protected Map<String,T> cache
构造方法详细信息

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.

方法详细信息

get

public T get(String id)
指定者:
接口 DeploymentCache<T> 中的 get

add

public void add(String id,
                T obj)
指定者:
接口 DeploymentCache<T> 中的 add

remove

public void remove(String id)
指定者:
接口 DeploymentCache<T> 中的 remove

clear

public void clear()
指定者:
接口 DeploymentCache<T> 中的 clear

size

public int size()


Copyright © 2013 Alfresco. All rights reserved.