B
- a bound for the types of values in the mappublic class LockableClassToInstanceMultiMap<B> extends ClassToInstanceMultiMap<B>
ClassToInstanceMultiMap
which exposes a map-specific
instance of ReadWriteLock
. Callers of the map are responsible for explicitly locking
(and unlocking) for reading and/or writing, based on application use cases and concurrency
requirements.Modifier and Type | Field and Description |
---|---|
private ReadWriteLock |
readWriteLock
The map's read write lock.
|
Constructor and Description |
---|
LockableClassToInstanceMultiMap()
Constructor.
|
LockableClassToInstanceMultiMap(boolean isIndexingSupertypes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ReadWriteLock |
getReadWriteLock()
Get the map-specific instance of the
ReadWriteLock . |
private ReadWriteLock readWriteLock
public LockableClassToInstanceMultiMap()
public LockableClassToInstanceMultiMap(boolean isIndexingSupertypes)
isIndexingSupertypes
- indicates whether supertypes of a value should be indexedpublic ReadWriteLock getReadWriteLock()
ReadWriteLock
.
Callers of the map are responsible for explicitly locking (and unlocking) for reading and/or writing, based on application use cases.
Copyright © 1999–2018. All rights reserved.