Package org.idempiere.cache
Class IntPOCopyCache<K,V extends PO>
- java.lang.Object
-
- org.compiere.util.CCache<K,V>
-
- org.idempiere.cache.POCopyCache<Integer,V>
-
- org.idempiere.cache.IntPOCopyCache<K,V>
-
- All Implemented Interfaces:
Serializable
,Map<Integer,V>
,CacheInterface
public class IntPOCopyCache<K,V extends PO> extends POCopyCache<Integer,V>
POCopyCache key by Integer record id- Author:
- hengsin
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.util.CCache
cache, DEFAULT_EXPIRE_MINUTE, nullList
-
-
Constructor Summary
Constructors Constructor Description IntPOCopyCache(String name, int initialCapacity)
IntPOCopyCache(String name, int initialCapacity, int expireMinutes)
IntPOCopyCache(String name, int initialCapacity, int expireMinutes, boolean distributed)
IntPOCopyCache(String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
IntPOCopyCache(String tableName, String name, int initialCapacity)
IntPOCopyCache(String tableName, String name, int initialCapacity, boolean distributed)
IntPOCopyCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed)
IntPOCopyCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
reset(int recordId)
Reset Cache by record id-
Methods inherited from class org.compiere.util.CCache
addVetoableChangeListener, clear, containsKey, containsValue, entrySet, getExpireMinutes, getHit, getMaxSize, getMiss, getName, getTableName, isDistributed, isEmpty, isExpire, isReset, keySet, newRecord, putAll, remove, removeVetoableChangeListener, reset, setExpireMinutes, setUsed, size, sizeNoExpire, toString, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
IntPOCopyCache
public IntPOCopyCache(String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
- Parameters:
name
-initialCapacity
-expireMinutes
-distributed
-maxSize
-
-
IntPOCopyCache
public IntPOCopyCache(String name, int initialCapacity, int expireMinutes, boolean distributed)
- Parameters:
name
-initialCapacity
-expireMinutes
-distributed
-
-
IntPOCopyCache
public IntPOCopyCache(String name, int initialCapacity, int expireMinutes)
- Parameters:
name
-initialCapacity
-expireMinutes
-
-
IntPOCopyCache
public IntPOCopyCache(String name, int initialCapacity)
- Parameters:
name
-initialCapacity
-
-
IntPOCopyCache
public IntPOCopyCache(String tableName, String name, int initialCapacity, boolean distributed)
- Parameters:
tableName
-name
-initialCapacity
-distributed
-
-
IntPOCopyCache
public IntPOCopyCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
- Parameters:
tableName
-name
-initialCapacity
-expireMinutes
-distributed
-maxSize
-
-
IntPOCopyCache
public IntPOCopyCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed)
- Parameters:
tableName
-name
-initialCapacity
-expireMinutes
-distributed
-
-
-
Method Detail
-
reset
public int reset(int recordId)
Description copied from interface:CacheInterface
Reset Cache by record id
-
-