Package nablarch.core.util.map
Class ExclusiveAccessMap<K,V> 
java.lang.Object
java.util.AbstractMap<K,V>
 
nablarch.core.util.map.MapWrapper<K,V>
 
nablarch.core.util.map.LockableMap<K,V>
 
nablarch.core.util.map.ExclusiveAccessMap<K,V> 
- Type Parameters:
- K- キーの型
- V- 値の型
与えられたMapに対する自動排他制御を実装するラッパークラス。
 アクセサを使用した時点で排他ロックを自動的に取得する。
- Author:
- Iwauo Tajima <iwauo@tis.co.jp>
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionExclusiveAccessMap(Map<K, V> baseMap) コンストラクタ。ExclusiveAccessMap(Map<K, V> baseMap, ReentrantLock lock) コンストラクタ
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class nablarch.core.util.map.LockableMapdeactivate, getDelegateMap, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockMethods inherited from class nablarch.core.util.map.MapWrapperequals, getDelegateMapOfType, hashCode, toStringMethods inherited from class java.util.AbstractMapcloneMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
ExclusiveAccessMapコンストラクタ。- Parameters:
- baseMap- ラップ対象のMap
 
- 
ExclusiveAccessMapコンストラクタ- Parameters:
- baseMap- ラップ対象のMap
- lock- ロックオブジェクト
 
 
- 
- 
Method Details- 
clearpublic void clear()MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
containsKeyMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。- Specified by:
- containsKeyin interface- Map<K,- V> 
- Overrides:
- containsKeyin class- MapWrapper<K,- V> 
 
- 
containsValueMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。- Specified by:
- containsValuein interface- Map<K,- V> 
- Overrides:
- containsValuein class- MapWrapper<K,- V> 
 
- 
entrySetMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
getMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
isEmptypublic boolean isEmpty()MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
keySetMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
putMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
putAllMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
removeMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
sizepublic int size()MapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
- 
valuesMapWrapper.getDelegateMap()が返すMapオブジェクトに処理を委譲する。
 
-