Class LockableMetadataIndexManager<T>

  • Type Parameters:
    T - the type of data being indexed

    public class LockableMetadataIndexManager<T>
    extends MetadataIndexManager<T>
    A specialization of MetadataIndexManager capable of read/write locking.
    • Field Detail

      • readWriteLock

        @Nonnull
        private final ReadWriteLock readWriteLock
        The manager's read write lock.
    • Constructor Detail

      • LockableMetadataIndexManager

        public LockableMetadataIndexManager​(@Nullable @NonnullElements @Unmodifiable @NotLive
                                            Set<org.opensaml.saml.metadata.resolver.index.MetadataIndex> initIndexes,
                                            @Nonnull
                                            Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,​T> extractionFunction)
        Constructor.
        Parameters:
        initIndexes - indexes for which to initialize storage
        extractionFunction - function to extract the indexed data item from an EntityDescriptor
    • Method Detail

      • getReadWriteLock

        @Nonnull
        public ReadWriteLock getReadWriteLock()
        Get the manager's instance of the ReadWriteLock.

        Callers of the manager are responsible for explicitly locking (and unlocking) for reading and/or writing, based on application use cases.

        Returns:
        Returns the rwlock.