T - the type of data being indexedpublic class LockableMetadataIndexManager<T> extends MetadataIndexManager<T>
MetadataIndexManager capable of read/write locking.MetadataIndexManager.EntityIDExtractionFunction, MetadataIndexManager.IdentityExtractionFunction| Modifier and Type | Field and Description |
|---|---|
private ReadWriteLock |
readWriteLock
The manager's read write lock.
|
| Constructor and Description |
|---|
LockableMetadataIndexManager(Set<MetadataIndex> initIndexes,
com.google.common.base.Function<EntityDescriptor,T> extractionFunction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ReadWriteLock |
getReadWriteLock()
Get the manager's instance of the
ReadWriteLock. |
deindexEntityDescriptor, getIndexes, getStore, indexEntityDescriptor, lookupIndexedItems@Nonnull private final ReadWriteLock readWriteLock
public LockableMetadataIndexManager(@Nullable @NonnullElements @Unmodifiable @NotLive Set<MetadataIndex> initIndexes, @Nonnull com.google.common.base.Function<EntityDescriptor,T> extractionFunction)
initIndexes - indexes for which to initialize storageextractionFunction - function to extract the indexed data item from an EntityDescriptor@Nonnull public ReadWriteLock getReadWriteLock()
ReadWriteLock.
Callers of the manager are responsible for explicitly locking (and unlocking) for reading and/or writing, based on application use cases.
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.