public class DefaultBundleCacheUpdateProcessorImpl extends java.lang.Object implements BundleCacheUpdateProcessor
This implementation can be triggered on a regular interval to check if a bundle needs to be refreshed. The implementation iterates through the entire list of configured trust bundles in the system checking each bundle's last refresh time. If a bundles refresh interval has not been exceeded since its last update, then it will not checked for updates.
| Constructor and Description |
|---|
DefaultBundleCacheUpdateProcessorImpl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setRefreshProcessor(BundleRefreshProcessor refreshProcessor)
Sets the
BundleRefreshProcessor used to refresh a bundle the bundle's refresh interval
has been exceeded. |
void |
setRepository(org.nhindirect.config.repository.TrustBundleRepository bundleRepo)
Sets the trust bundle repository used to get the last refresh date/time.
|
void |
updateBundleCache()
Updates all anchors within each bundle in the system based on the bundles's refresh interval.
|
public DefaultBundleCacheUpdateProcessorImpl()
public void setRepository(org.nhindirect.config.repository.TrustBundleRepository bundleRepo)
bundleRepo - public void setRefreshProcessor(BundleRefreshProcessor refreshProcessor)
BundleRefreshProcessor used to refresh a bundle the bundle's refresh interval
has been exceeded.refreshProcessor - The BundleRefreshProcessor.@Handler public void updateBundleCache()
updateBundleCache in interface BundleCacheUpdateProcessorCopyright © 2019. All Rights Reserved.