public static interface DruidNodeDiscovery.Listener
DruidNodeDiscoveryProvider.getXXX(). DruidNodeDiscovery implementation should assume that Listener is not
thread-safe and never call methods in Listener concurrently.
Implementation of Listener must ensure to not do any time consuming work or block in any of the methods.| Modifier and Type | Method and Description |
|---|---|
void |
nodesAdded(Collection<DiscoveryDruidNode> nodes) |
void |
nodesRemoved(Collection<DiscoveryDruidNode> nodes) |
default void |
nodeViewInitialized()
Called once when the underlying cache in the DruidNodeDiscovery implementation has been initialized.
|
void nodesAdded(Collection<DiscoveryDruidNode> nodes)
void nodesRemoved(Collection<DiscoveryDruidNode> nodes)
default void nodeViewInitialized()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.