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 Summary
Fields Modifier and Type Field Description private Function<CriteriaSet,MetadataType>fetchStrategyThe function to use to fetch metadata if either none exists, or the existing is stale.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFetchThroughMetadataCacheBuilderSpec()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Function<CriteriaSet,MetadataType>getFetchStrategy()Get the metadata fetching strategy.voidsetFetchStrategy(Function<CriteriaSet,MetadataType> strategy)Set the metadata fetching strategy.-
Methods inherited from class net.shibboleth.oidc.metadata.cache.impl.BaseMetadataCacheBuilderSpec
getCacheId, getCriteriaToIdentifierStrategy, getIdentifierExtractionStrategy, getMetadataBeforeRemovalHook, getMetadataFilterStrategy, getMetadataValidPredicate, getRefreshDelayFactor, setCacheId, setCriteriaToIdentifierStrategy, setIdentifierExtractionStrategy, setMetadataBeforeRemovalHook, setMetadataFilterStrategy, setMetadataValidPredicate, setRefreshDelayFactor
-
-
-
-
Field Detail
-
fetchStrategy
@Nullable private Function<CriteriaSet,MetadataType> fetchStrategy
The function to use to fetch metadata if either none exists, or the existing is stale.
-
-
Method Detail
-
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.
-
-