@Internal
public interface DispatcherBootstrap
Dispatcher
of a cluster.Modifier and Type | Method and Description |
---|---|
void |
initialize(Dispatcher dispatcher,
ScheduledExecutor scheduledExecutor)
Initializes the
Dispatcher provided as an argument. |
void |
stop()
Stops and frees any resources (e.g.
|
void initialize(Dispatcher dispatcher, ScheduledExecutor scheduledExecutor) throws Exception
Dispatcher
provided as an argument.
IMPORTANT: In HA settings, this method will run during the initialization of the **leader** dispatcher.
dispatcher
- the dispatcher to be initialized.Exception
void stop() throws Exception
initialize(Dispatcher, ScheduledExecutor)
.Exception
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.