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
FieldsModifier and TypeFieldDescriptionprivate Function<CriteriaSet,MetadataType> The function to use to fetch metadata if either none exists, or the existing is stale. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Function<CriteriaSet,MetadataType> 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 Details
-
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
Set the metadata fetching strategy.- Parameters:
strategy- the strategy to use.
-
getFetchStrategy
Get the metadata fetching strategy.- Returns:
- the fetching strategy.
-