Package org.idempiere.cache
Class ImmutableIntPOCache<K,V extends PO & ImmutablePOSupport>
- java.lang.Object
-
- org.compiere.util.CCache<K,V>
-
- org.idempiere.cache.ImmutablePOCache<Integer,V>
-
- org.idempiere.cache.ImmutableIntPOCache<K,V>
-
- All Implemented Interfaces:
Serializable
,Map<Integer,V>
,CacheInterface
public class ImmutableIntPOCache<K,V extends PO & ImmutablePOSupport> extends ImmutablePOCache<Integer,V>
ImmutableIntPOCache 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 ImmutableIntPOCache(String name, int initialCapacity)
ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes)
ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes, boolean distributed)
ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
ImmutableIntPOCache(String tableName, String name, int initialCapacity)
ImmutableIntPOCache(String tableName, String name, int initialCapacity, boolean distributed)
ImmutableIntPOCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed)
ImmutableIntPOCache(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
-
ImmutableIntPOCache
public ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
- Parameters:
name
-initialCapacity
-expireMinutes
-distributed
-maxSize
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes, boolean distributed)
- Parameters:
name
-initialCapacity
-expireMinutes
-distributed
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(String name, int initialCapacity, int expireMinutes)
- Parameters:
name
-initialCapacity
-expireMinutes
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(String name, int initialCapacity)
- Parameters:
name
-initialCapacity
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(String tableName, String name, int initialCapacity, boolean distributed)
- Parameters:
tableName
-name
-initialCapacity
-distributed
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(String tableName, String name, int initialCapacity, int expireMinutes, boolean distributed, int maxSize)
- Parameters:
tableName
-name
-initialCapacity
-expireMinutes
-distributed
-maxSize
-
-
ImmutableIntPOCache
public ImmutableIntPOCache(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- Specified by:
reset
in interfaceCacheInterface
- Overrides:
reset
in classCCache<Integer,V extends PO & ImmutablePOSupport>
- Returns:
- number of items reset
-
-