- All Superinterfaces:
- All Known Implementing Classes:
public interface RefreshableMetadataResolver extends MetadataResolver
MetadataResolverthat supports on-demand refresh.
Method SummaryModifier and TypeMethodDescriptionGets the reason the last refresh failed.Gets the time the last refresh cycle occurred.Gets the time the last successful refresh cycle occurred.Get the time that the currently available metadata was last updated.
refresh()Refresh the data exposed by the resolver.Gets whether the last refresh cycle was successful.
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
Methods inherited from interface org.opensaml.saml.metadata.resolver.MetadataResolver
getMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadata
refreshvoid refresh() throws ResolverExceptionRefresh the data exposed by the resolver.
An implementation of this method should typically be either
synchronizedor make use other locking mechanisms to protect against concurrent access.
ResolverException- if the refresh operation was unsuccessful
getLastRefresh@Nullable Instant getLastRefresh()Gets the time the last refresh cycle occurred.
- time the last refresh cycle occurred
getLastUpdate@Nullable Instant getLastUpdate()Get the time that the currently available metadata was last updated. Note, this may be different than the time retrieved by
getLastRefresh()is the metadata was known not to have changed during the last refresh cycle.
- time when the currently metadata was last updated, null if metadata has never successfully been read in
getLastSuccessfulRefresh@Nullable Instant getLastSuccessfulRefresh()Gets the time the last successful refresh cycle occurred.
- time the last successful refresh cycle occurred
wasLastRefreshSuccess@Nullable Boolean wasLastRefreshSuccess()Gets whether the last refresh cycle was successful.
- true if last refresh cycle was successful, false if not
getLastFailureCause@Nullable Throwable getLastFailureCause()Gets the reason the last refresh failed.
- reason the last refresh failed or null if the last refresh was successful