public final class CacheInvalidatorFactory extends Object implements AutoCloseable
CacheInvalidator
s for a given Cache
, as well managing the sequence snapshot process.Modifier and Type | Method and Description |
---|---|
void |
close()
CLoses all resources maintained by this object, including deregistration of all topic listeners.
|
static CacheInvalidatorFactory |
create(com.hazelcast.core.HazelcastInstance hazelcast,
Function<String,String> topicNamePrefixer,
Observability observability) |
<K extends Serializable,V> |
createCacheInvalidator(com.atlassian.cache.Cache<K,V> atlassianCache)
Creates a
CacheInvalidator for the given com.atlassian.cache.Cache . |
void |
publishSequenceSnapshot()
Builds a snapshot of the current invalidation sequence numbers for every cache, and publishes them to the other nodes.
|
public static CacheInvalidatorFactory create(com.hazelcast.core.HazelcastInstance hazelcast, Function<String,String> topicNamePrefixer, Observability observability)
CacheInvalidatorFactory
for the given HazelcastInstance
.public void close()
close
in interface AutoCloseable
public void publishSequenceSnapshot()
public <K extends Serializable,V> CacheInvalidator<K> createCacheInvalidator(com.atlassian.cache.Cache<K,V> atlassianCache)
CacheInvalidator
for the given com.atlassian.cache.Cache
.Copyright © 2003–2020 Atlassian. All rights reserved.