Class DefaultDekCacheUpdateHandler

java.lang.Object
io.confluent.dekregistry.storage.DefaultDekCacheUpdateHandler
All Implemented Interfaces:
DekCacheUpdateHandler, io.kcache.CacheUpdateHandler<EncryptionKeyId,EncryptionKey>, Closeable, AutoCloseable, org.apache.kafka.common.Configurable

public class DefaultDekCacheUpdateHandler extends Object implements DekCacheUpdateHandler
  • Constructor Details

    • DefaultDekCacheUpdateHandler

      public DefaultDekCacheUpdateHandler(KafkaDekRegistry dekRegistry)
  • Method Details

    • validateUpdate

      public io.kcache.CacheUpdateHandler.ValidationStatus validateUpdate(EncryptionKeyId key, EncryptionKey value, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
      Specified by:
      validateUpdate in interface io.kcache.CacheUpdateHandler<EncryptionKeyId,EncryptionKey>
    • handleUpdate

      public void handleUpdate(EncryptionKeyId key, EncryptionKey value, EncryptionKey oldValue, org.apache.kafka.common.TopicPartition tp, long offset, long timestamp)
      Invoked on every new schema written to the Kafka store
      Specified by:
      handleUpdate in interface io.kcache.CacheUpdateHandler<EncryptionKeyId,EncryptionKey>
      Parameters:
      key - Key associated with the schema.
      value - Value written to the Kafka lookupCache
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface io.kcache.CacheUpdateHandler<EncryptionKeyId,EncryptionKey>
      Specified by:
      close in interface Closeable