public CachingDraftWorkflowStore(final DraftWorkflowStore delegate, CacheManager cacheManager) { this.delegate = delegate; draftWorkflowCache = cacheManager.getCache(CachingDraftWorkflowStore.class.getName() + ".draftWorkflowCache", new DraftWorkflowCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
public CachedGenericConfigManager(final GenericConfigManager delegate, final CacheManager cacheManager) { this.delegate = delegate; cache = cacheManager.getCache(CachedGenericConfigManager.class.getName() + ".cache", new GeneralConfigCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
TokenManagerImpl(final long timeout, final PermissionManager permissionManager, final LoginService loginService, final JiraAuthenticationContext authenticationContext, final UserManager userManager, final CacheManager cacheManager) { this.permissionManager = permissionManager; this.loginService = loginService; this.authenticationContext = authenticationContext; this.userManager = userManager; userTokens = cacheManager.getCache(TokenManagerImpl.class.getName() + ".userCache", null, new CacheSettingsBuilder().replicateViaCopy().expireAfterAccess(timeout, TimeUnit.MILLISECONDS).build()); }
public DefaultFieldScreenSchemeManager(final OfBizDelegator ofBizDelegator, final FieldScreenManager fieldScreenManager, final CacheManager cacheManager) { this.ofBizDelegator = ofBizDelegator; this.fieldScreenManager = fieldScreenManager; schemeCache = cacheManager.getCache(DefaultFieldScreenSchemeManager.class.getName() + ".schemeCache", new FieldScreenSchemeCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
CachingUserHistoryStore(@Nonnull final OfBizUserHistoryStore delegatingStore, @Nonnull final ApplicationProperties applicationProperties, final CacheManager cacheManager, int maxThreshold) { this.delegatingStore = notNull("delegatingStore", delegatingStore); this.applicationProperties = notNull("applicationProperties", applicationProperties); this.maxThreshold = maxThreshold; this.cache = cacheManager.getCache(CachingUserHistoryStore.class.getName() + ".cache", new DelegatingStoreCacheLoader(), new CacheSettingsBuilder().local().expireAfterAccess(15, TimeUnit.MINUTES).build()); }
public CachingPortalPageStore(final PortalPageStore delegateStore, final CacheManager cacheManager) { Assertions.notNull("delegateStore", delegateStore); this.delegateStore = delegateStore; cacheByUser = cacheManager.getCache(CachingPortalPageStore.class.getName() + ".cacheByUser", new ByUserCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); cacheById = cacheManager.getCache(CachingPortalPageStore.class.getName() + ".cacheById", new ByIdCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
public CachingPortletConfigurationStore(final PortletConfigurationStore delegateStore, final CacheManager cacheManager) { notNull("delegateStore", delegateStore); this.delegateStore = delegateStore; cacheByPageId = cacheManager.getCache(CachingPortletConfigurationStore.class.getName() + ".cacheByPageId", new ByPageIdCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); cacheById = cacheManager.getCache(CachingPortletConfigurationStore.class.getName() + ".cacheById", new ByIdCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
public CachingSearchRequestStore(final SearchRequestStore delegateStore, final CacheManager cacheManager) { Assertions.notNull("delegateStore", delegateStore); this.delegateStore = delegateStore; cacheByUser = cacheManager.getCache(CachingSearchRequestStore.class.getName() + ".cacheByUser", new ByUserCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); cacheById = cacheManager.getCache(CachingSearchRequestStore.class.getName() + ".cacheById", new ByIdCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
public CachingWorkflowDescriptorStore(final WorkflowDescriptorStore delegate, final CacheManager cacheManager) { this.delegate = delegate; workflowCache = cacheManager.getCache(CachingWorkflowDescriptorStore.class.getName() + ".workflowCache", new WorkflowCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); allNamesCache = cacheManager.getCachedReference(CachingWorkflowDescriptorStore.class.getName() + ".allNamesCache", new AllNamesSupplier()); }
public CachingSharePermissionStore(final SharePermissionStore delegateStore, final CacheManager cacheManager) { Assertions.notNull("delegateStore", delegateStore); this.delegateStore = delegateStore; cache = cacheManager.getCache(CachingSharePermissionStore.class.getName() + ".cache", new SharePermissionsCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }
public CachedOptionSetManager(OptionSetPersister optionSetPersister, ConstantsManager constantsManager, CacheManager cacheManager) { this.optionSetManager = new OptionSetManagerImpl(optionSetPersister, constantsManager); this.cache = cacheManager.getCache(CachedOptionSetManager.class.getName() + ".cache", new OptionSetLoader(), new CacheSettingsBuilder().expireAfterAccess(30, MINUTES).build()); }
public CachingOfBizPropertyEntryStore(final DelegatorInterface genericDelegator, final CacheManager cacheManager) { this.genericDelegator = notNull("genericDelegator", genericDelegator); this.entries = cacheManager.getCache( CachingOfBizPropertyEntryStore.class.getName() + ".entries", new EntryLoader(), new CacheSettingsBuilder() .expireAfterAccess(30, TimeUnit.MINUTES) .build()); }
public CachingLabelStore(final OfBizLabelStore delegateStore, CacheManager cacheManager) { this.delegateStore = delegateStore; cache = cacheManager.getCache(CachingLabelStore.class.getName() + ".cache", new LabelCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(10, TimeUnit.MINUTES).maxEntries(1000).build()); }
public LazyOfBizUserCache(final CacheManager cacheManager, final OfBizDelegator ofBizDelegator) { this.ofBizDelegator = ofBizDelegator; this.cache = cacheManager.getCache(LazyOfBizUserCache.class.getName() + ".userCache", new UserCacheLoader(), new CacheSettingsBuilder() .expireAfterAccess(30, TimeUnit.MINUTES).flushable().build()); }
public LazyOfBizGroupCache(final CacheManager cacheManager, final OfBizDelegator ofBizDelegator) { this.ofBizDelegator = ofBizDelegator; this.cache = cacheManager.getCache(LazyOfBizGroupCache.class.getName() + ".groupCache", new GroupCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).flushable() .build()); }
public CachingPluginIndexConfigurationManager(final OfBizPluginIndexConfigurationManager delegate, final CacheManager cacheManager) { this.delegate = delegate; this.byEntityKeyCache = cacheManager.getCache(CachingPluginIndexConfigurationManager.class.getName() + ".cacheByEntityKey", new ByEntityKeyCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(10, TimeUnit.MINUTES).maxEntries(1000).build()); }
public OfBizInternalMembershipDao(final OfBizDelegator ofBizDelegator, final CacheManager cacheManager) { this.ofBizDelegator = ofBizDelegator; parentsCache = cacheManager.getCache(OfBizInternalMembershipDao.class.getName() + ".parentsCache", new ParentsLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).flushable().build()); childrenCache = cacheManager.getCache(OfBizInternalMembershipDao.class.getName() + ".childrenCache", new ChildrenLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).flushable().build()); }
public CachingFavouritesStore(final FavouritesStore delegateStore, final CacheManager cacheManager) { this.delegateStore = notNull("delegateStore", delegateStore); favouritesCache = cacheManager.getCache(CachingFavouritesStore.class.getName() + ".favouritesCache", new KeyCollectionCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(10, TimeUnit.MINUTES).maxEntries(1000).build()); }
public CacheHolder() { CacheSettings cacheSettings = new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build(); mailServerCache = cacheManagerRef.get().getCache(CACHE_NAME, new MailServerCacheLoader(), cacheSettings); CacheSettings allCacheSettings = new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build(); allMailServerCache = cacheManagerRef.get().getCachedReference(ALL_CACHE_NAME, new AllMailServersSupplier(), allCacheSettings); eventPublisherRef.get().register(this); }
public CachingFieldScreenStore(FieldScreenStore decoratedStore, CacheManager cacheManager) { this.decoratedStore = decoratedStore; allScreensCache = cacheManager.getCachedReference("com.atlassian.jira.issue.fields.screen.CachingFieldScreenStore.allScreensCache", new AllScreenSupplier()); fieldScreenCache = cacheManager.getCache("com.atlassian.jira.issue.fields.screen.CachingFieldScreenStore.fieldScreenCache", new FieldScreenCacheLoader(), new CacheSettingsBuilder().expireAfterAccess(30, TimeUnit.MINUTES).build()); }