Class FetchThroughMetadataCacheBuilderSpec<IdentifierType,MetadataType>

java.lang.Object
net.shibboleth.oidc.metadata.cache.impl.BaseMetadataCacheBuilderSpec<IdentifierType,MetadataType>
net.shibboleth.oidc.metadata.cache.impl.FetchThroughMetadataCacheBuilderSpec<IdentifierType,MetadataType>
Type Parameters:
IdentifierType - The metadata identifier type.
MetadataType - the metadata type.
All Implemented Interfaces:
MetadataCacheBuilderSpec<IdentifierType,MetadataType>

public class FetchThroughMetadataCacheBuilderSpec<IdentifierType,MetadataType> extends BaseMetadataCacheBuilderSpec<IdentifierType,MetadataType> implements MetadataCacheBuilderSpec<IdentifierType,MetadataType>
A specification for building a fetch-through metadata cache.
  • Field Details

    • fetchStrategy

      @Nullable private Function<CriteriaSet,MetadataType> fetchStrategy
      The function to use to fetch metadata if either none exists, or the existing is stale.
  • Constructor Details

    • FetchThroughMetadataCacheBuilderSpec

      protected FetchThroughMetadataCacheBuilderSpec()
      Constructor.
  • Method Details

    • setFetchStrategy

      public void setFetchStrategy(@Nonnull Function<CriteriaSet,MetadataType> strategy)
      Set the metadata fetching strategy.
      Parameters:
      strategy - the strategy to use.
    • getFetchStrategy

      @Nullable protected Function<CriteriaSet,MetadataType> getFetchStrategy()
      Get the metadata fetching strategy.
      Returns:
      the fetching strategy.