Class HazelcastCacheCompactor
- java.lang.Object
-
- com.atlassian.confluence.impl.cache.CacheCompactorSupport
-
- com.atlassian.confluence.cache.hazelcast.HazelcastCacheCompactor
-
- All Implemented Interfaces:
CacheCompactor,ClusterCacheCompactor,Runnable
@Internal public class HazelcastCacheCompactor extends CacheCompactorSupport implements ClusterCacheCompactor
Clears Hazelcast caches that exceeded 2x of their maximum size.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHazelcastCacheCompactor.CacheCompactionEvent
-
Constructor Summary
Constructors Constructor Description HazelcastCacheCompactor(com.atlassian.cache.CacheManager cacheManager, HazelcastHelper hazelcastHelper, com.atlassian.event.api.EventPublisher eventPublisher, io.micrometer.core.instrument.MeterRegistry micrometerRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompact()Perform the compaction-
Methods inherited from class com.atlassian.confluence.impl.cache.CacheCompactorSupport
run
-
-
-
-
Constructor Detail
-
HazelcastCacheCompactor
public HazelcastCacheCompactor(com.atlassian.cache.CacheManager cacheManager, HazelcastHelper hazelcastHelper, com.atlassian.event.api.EventPublisher eventPublisher, io.micrometer.core.instrument.MeterRegistry micrometerRegistry)
-
-
Method Detail
-
compact
public void compact()
Description copied from interface:CacheCompactorPerform the compaction- Specified by:
compactin interfaceCacheCompactor
-
-