Class DistributedCacheInvalidationCounter<M>
- java.lang.Object
-
- com.atlassian.confluence.cache.hazelcast.monitoring.DistributedCacheInvalidationCounter<M>
-
@Deprecated public abstract class DistributedCacheInvalidationCounter<M> extends Object
Deprecated.since 7.6 no replacementResponsible for counting distributed cache invalidation messages published on HazelcastITopics, using Micrometer. This is an abstract class, and subclasses are responsible for determining which topics are used, and how to decode the messages on them.- See Also:
HazelcastTopicMessageRouter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDistributedCacheInvalidationCounter.InvalidationTypeDeprecated.
-
Constructor Summary
Constructors Constructor Description DistributedCacheInvalidationCounter(HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract StringcacheType()Deprecated.static DistributedCacheInvalidationCounter<Object>forAtlassianCache(com.atlassian.cache.CacheManager cacheManager, HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)Deprecated.since 7.6 no replacementstatic DistributedCacheInvalidationCounter<com.hazelcast.hibernate.local.Invalidation>forHibernateL2CacheRegions(org.hibernate.SessionFactory sessionFactory, HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)Deprecated.since 7.6 no replacementprotected abstract StringgetCacheName(String topicName)Deprecated.protected abstract Stream<String>getInvalidationTopicNames()Deprecated.protected abstract DistributedCacheInvalidationCounter.InvalidationTypeinvalidationType(M message)Deprecated.voidonTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)Deprecated.voidregisterForTenantArrivalEvent()Deprecated.voidunregisterFromEvents()Deprecated.
-
-
-
Constructor Detail
-
DistributedCacheInvalidationCounter
public DistributedCacheInvalidationCounter(HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
Deprecated.
-
-
Method Detail
-
registerForTenantArrivalEvent
@PostConstruct public void registerForTenantArrivalEvent()
Deprecated.
-
unregisterFromEvents
@PreDestroy public void unregisterFromEvents()
Deprecated.
-
onTenantArrived
@EventListener public void onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
Deprecated.
-
cacheType
protected abstract String cacheType()
Deprecated.
-
invalidationType
protected abstract DistributedCacheInvalidationCounter.InvalidationType invalidationType(M message)
Deprecated.
-
forHibernateL2CacheRegions
@Deprecated public static DistributedCacheInvalidationCounter<com.hazelcast.hibernate.local.Invalidation> forHibernateL2CacheRegions(org.hibernate.SessionFactory sessionFactory, HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
Deprecated.since 7.6 no replacementCreates aDistributedCacheInvalidationCounterthat counts invalidations published byLocalRegionCacheviaHazelcastHibernateRegionFactory.
-
forAtlassianCache
@Deprecated public static DistributedCacheInvalidationCounter<Object> forAtlassianCache(com.atlassian.cache.CacheManager cacheManager, HazelcastTopicMessageRouter messageRouter, io.micrometer.core.instrument.MeterRegistry meterRegistry, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
Deprecated.since 7.6 no replacementCreates aDistributedCacheInvalidationCounterthat counts invalidations published byHazelcastAsyncHybridCache.
-
-