Class RedisBulkDistributedMapCacheClientService

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.qubership.nifi.service.RedisBulkDistributedMapCacheClientService
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, BulkDistributedMapCacheClient

@Tags({"redis","distributed","cache","map"}) @CapabilityDescription("") public class RedisBulkDistributedMapCacheClientService extends org.apache.nifi.controller.AbstractControllerService implements BulkDistributedMapCacheClient
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <K> boolean
    containsKey(K key, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer)
     
    <K, V> V
    get(K key, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Deserializer<V> valueDeserializer)
     
    <K, V> Map<K,V>
    getAndPutIfAbsent(Map<K,V> map, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer, org.apache.nifi.distributed.cache.client.Deserializer<V> valueDeserializer)
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
    Allows subclasses to register which property descriptor objects are supported.
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     
    <K, V> void
    put(K key, V value, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer)
     
    <K, V> boolean
    putIfAbsent(K key, V value, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer)
     
    <K> long
    remove(List<K> keys, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer)
     
    void
    This method is called during disable controller services.

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful
  • Field Details

    • REDIS_CONNECTION_POOL

      public static final org.apache.nifi.components.PropertyDescriptor REDIS_CONNECTION_POOL
    • TTL

      public static final org.apache.nifi.components.PropertyDescriptor TTL
  • Constructor Details

    • RedisBulkDistributedMapCacheClientService

      public RedisBulkDistributedMapCacheClientService()
  • Method Details

    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Allows subclasses to register which property descriptor objects are supported. Default return is an empty set.
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
      Returns:
      PropertyDescriptor objects this processor currently supports
    • onEnabled

      @OnEnabled public void onEnabled(org.apache.nifi.controller.ConfigurationContext context) throws org.apache.nifi.reporting.InitializationException
      Parameters:
      context - the configuration context
      Throws:
      org.apache.nifi.reporting.InitializationException - if unable to create a database connection
    • shutdown

      @OnDisabled public void shutdown()
      This method is called during disable controller services.
    • getAndPutIfAbsent

      public <K, V> Map<K,V> getAndPutIfAbsent(Map<K,V> map, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer, org.apache.nifi.distributed.cache.client.Deserializer<V> valueDeserializer) throws IOException
      Specified by:
      getAndPutIfAbsent in interface BulkDistributedMapCacheClient
      Throws:
      IOException
    • remove

      public <K> long remove(List<K> keys, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer) throws IOException
      Specified by:
      remove in interface BulkDistributedMapCacheClient
      Throws:
      IOException
    • putIfAbsent

      public <K, V> boolean putIfAbsent(K key, V value, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer) throws IOException
      Specified by:
      putIfAbsent in interface BulkDistributedMapCacheClient
      Throws:
      IOException
    • containsKey

      public <K> boolean containsKey(K key, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer) throws IOException
      Specified by:
      containsKey in interface BulkDistributedMapCacheClient
      Throws:
      IOException
    • put

      public <K, V> void put(K key, V value, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Serializer<V> valueSerializer) throws IOException
      Specified by:
      put in interface BulkDistributedMapCacheClient
      Throws:
      IOException
    • get

      public <K, V> V get(K key, org.apache.nifi.distributed.cache.client.Serializer<K> keySerializer, org.apache.nifi.distributed.cache.client.Deserializer<V> valueDeserializer) throws IOException
      Specified by:
      get in interface BulkDistributedMapCacheClient
      Throws:
      IOException