public class DefaultBundleCacheUpdateProcessorImpl extends 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 |
setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
Sets the trust bundle dao used to get the last refresh date/time.
|
void |
setRefreshProcessor(BundleRefreshProcessor refreshProcessor)
Sets the
BundleRefreshProcessor used to refresh a bundle the bundle's refresh interval
has been exceeded. |
void |
updateBundleCache()
Updates all anchors within each bundle in the system based on the bundles's refresh interval.
|
public DefaultBundleCacheUpdateProcessorImpl()
public void setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
dao - 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 © 2015. All Rights Reserved.