Package org.apache.druid.discovery
Interface DruidNodeDiscovery.Listener
-
- Enclosing interface:
- DruidNodeDiscovery
public static interface DruidNodeDiscovery.ListenerListener for watching nodes in a DruidNodeDiscovery instance obtained viaDruidNodeDiscoveryProvider.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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidnodesAdded(Collection<DiscoveryDruidNode> nodes)voidnodesRemoved(Collection<DiscoveryDruidNode> nodes)default voidnodeViewInitialized()Called once when the underlying cache in the DruidNodeDiscovery implementation has been initialized.default voidnodeViewInitializedTimedOut()Called once when the underlying cache in the DruidNodeDiscovery implementation has timed out trying to initialize.
-
-
-
Method Detail
-
nodesAdded
void nodesAdded(Collection<DiscoveryDruidNode> nodes)
-
nodesRemoved
void nodesRemoved(Collection<DiscoveryDruidNode> nodes)
-
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.
-
-