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
ConstructorsConstructorDescriptionOAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator, String path, ExecutorService executorService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidchildEvent(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) voidsetListener(OAuthProviderCacheListener listener) voidstart()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
-
Constructor Details
-
OAuthProvidersNotifyingCache
public OAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator, String path, ExecutorService executorService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
start
- Overrides:
startin classorg.apache.curator.framework.recipes.cache.PathChildrenCache- Throws:
Exception
-
setListener
-
childEvent
public void childEvent(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) throws Exception - Specified by:
childEventin interfaceorg.apache.curator.framework.recipes.cache.PathChildrenCacheListener- Throws:
Exception
-