Package org.apache.druid.discovery
Interface DruidNodeDiscovery.Listener
- Enclosing interface:
- DruidNodeDiscovery
public static interface DruidNodeDiscovery.Listener
Listener for watching nodes in a DruidNodeDiscovery instance obtained via
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidnodesAdded(Collection<DiscoveryDruidNode> nodes) voidnodesRemoved(Collection<DiscoveryDruidNode> nodes) default voidCalled once when the underlying cache in the DruidNodeDiscovery implementation has been initialized.default voidCalled once when the underlying cache in the DruidNodeDiscovery implementation has timed out trying to initialize.
-
Method Details
-
nodesAdded
-
nodesRemoved
-
nodeViewInitialized
default void nodeViewInitialized()Called once when the underlying cache in the DruidNodeDiscovery implementation has been initialized. -
nodeViewInitializedTimedOut
default void nodeViewInitializedTimedOut()Called once when the underlying cache in the DruidNodeDiscovery implementation has timed out trying to initialize.
-