Class CompositeCacheUpdateHandler<K,V>
java.lang.Object
io.confluent.dekregistry.storage.utils.CompositeCacheUpdateHandler<K,V>
- All Implemented Interfaces:
io.kcache.CacheUpdateHandler<K,,V> Closeable,AutoCloseable,org.apache.kafka.common.Configurable
public class CompositeCacheUpdateHandler<K,V>
extends Object
implements io.kcache.CacheUpdateHandler<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.kcache.CacheUpdateHandler
io.kcache.CacheUpdateHandler.ValidationStatus -
Constructor Summary
ConstructorsConstructorDescriptionCompositeCacheUpdateHandler(List<? extends io.kcache.CacheUpdateHandler<K, V>> handlers) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcacheInitialized(int count, Map<org.apache.kafka.common.TopicPartition, Long> checkpoints) voidvoidcacheSynchronized(int count, Map<org.apache.kafka.common.TopicPartition, Long> checkpoints) checkpoint(int count) voidclose()voidendBatch(int count) voidvoidhandleUpdate(K key, V value, V oldValue, org.apache.kafka.common.TopicPartition tp, long offset, long ts) voidstartBatch(int count) io.kcache.CacheUpdateHandler.ValidationStatusvalidateUpdate(org.apache.kafka.common.header.Headers headers, K key, V value, org.apache.kafka.common.TopicPartition tp, long offset, long ts, org.apache.kafka.common.record.TimestampType tsType, Optional<Integer> leaderEpoch) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kcache.CacheUpdateHandler
configure, handleUpdate, validateUpdate
-
Constructor Details
-
CompositeCacheUpdateHandler
-
-
Method Details
-
cacheInitialized
-
cacheReset
public void cacheReset() -
cacheSynchronized
-
startBatch
public void startBatch(int count) -
validateUpdate
-
handleUpdate
-
checkpoint
-
endBatch
public void endBatch(int count) -
failBatch
-
cacheFlushed
public void cacheFlushed() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.kcache.CacheUpdateHandler<K,V> - Specified by:
closein interfaceCloseable- Throws:
IOException
-
cacheDestroyed
public void cacheDestroyed()
-