@Internal public final class AsyncInvalidationCacheFactory extends Object
AsyncInvalidationCache
instances, as well as managing the scheduled publishing of
sequence snapshots and observability events from those caches.Modifier and Type | Class and Description |
---|---|
static class |
AsyncInvalidationCacheFactory.CacheInvalidationOutOfSequenceEvent |
static class |
AsyncInvalidationCacheFactory.CacheSequenceSnapshotInconsistentEvent |
Constructor and Description |
---|
AsyncInvalidationCacheFactory(com.hazelcast.core.HazelcastInstance hazelcastInstance,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.scheduler.SchedulerService schedulerService,
com.atlassian.cache.CacheFactory localCacheFactory,
io.micrometer.core.instrument.MeterRegistry micrometer) |
Modifier and Type | Method and Description |
---|---|
<K,V> com.atlassian.cache.Cache<K,V> |
createCache(String cacheName,
com.atlassian.cache.CacheLoader loader,
com.atlassian.cache.CacheSettings settings,
com.atlassian.cache.hazelcast.HazelcastCacheManager hazelcastCacheManager)
Creates an instance of
AsyncInvalidationCache , backed by the singleton instance of CacheInvalidatorFactory . |
void |
onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
Registers a sequence snapshot to be published on a scheduled, if and only if
CacheInvalidatorFactory has
been initialised. |
public AsyncInvalidationCacheFactory(com.hazelcast.core.HazelcastInstance hazelcastInstance, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.cache.CacheFactory localCacheFactory, io.micrometer.core.instrument.MeterRegistry micrometer)
@EventListener public void onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event) throws com.atlassian.scheduler.SchedulerServiceException
CacheInvalidatorFactory
has
been initialised.com.atlassian.scheduler.SchedulerServiceException
public <K,V> com.atlassian.cache.Cache<K,V> createCache(String cacheName, com.atlassian.cache.CacheLoader loader, com.atlassian.cache.CacheSettings settings, com.atlassian.cache.hazelcast.HazelcastCacheManager hazelcastCacheManager)
AsyncInvalidationCache
, backed by the singleton instance of CacheInvalidatorFactory
.Copyright © 2003–2020 Atlassian. All rights reserved.