Package org.idempiere.cache
Class ImmutableIntPOCache<K,V extends PO & ImmutablePOSupport>
- 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:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.compiere.util.CCache
cache, DEFAULT_EXPIRE_MINUTE, nullList
-
Constructor Summary
ConstructorDescriptionImmutableIntPOCache
(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
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 Details
-
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
- Parameters:
name
-initialCapacity
-expireMinutes
-
-
ImmutableIntPOCache
- Parameters:
name
-initialCapacity
-
-
ImmutableIntPOCache
- 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
-
-
ImmutableIntPOCache
- Parameters:
tableName
-name
-initialCapacity
-
-
-
Method Details
-
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
-