Class OAuthProvidersNotifyingCache

java.lang.Object
org.apache.curator.framework.recipes.cache.PathChildrenCache
pl.allegro.tech.hermes.consumers.consumer.oauth.OAuthProvidersNotifyingCache
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.curator.framework.recipes.cache.PathChildrenCacheListener

public class OAuthProvidersNotifyingCache extends org.apache.curator.framework.recipes.cache.PathChildrenCache implements org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.curator.framework.recipes.cache.PathChildrenCache

    org.apache.curator.framework.recipes.cache.PathChildrenCache.StartMode
  • Field Summary

    Fields inherited from class org.apache.curator.framework.recipes.cache.PathChildrenCache

    defaultThreadFactorySupplier
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator, String path, ExecutorService executorService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    childEvent(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event)
     
    void
     
    void
     

    Methods inherited from class org.apache.curator.framework.recipes.cache.PathChildrenCache

    clear, clearAndRefresh, clearDataBytes, clearDataBytes, close, ensurePath, getCurrentData, getCurrentData, getListenable, handleException, rebuild, rebuildNode, remove, start, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuthProvidersNotifyingCache

      public OAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator, String path, ExecutorService executorService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • start

      public void start() throws Exception
      Overrides:
      start in class org.apache.curator.framework.recipes.cache.PathChildrenCache
      Throws:
      Exception
    • setListener

      public void setListener(OAuthProviderCacheListener listener)
    • childEvent

      public void childEvent(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) throws Exception
      Specified by:
      childEvent in interface org.apache.curator.framework.recipes.cache.PathChildrenCacheListener
      Throws:
      Exception