public class AbstractMaestroExecutor extends Object implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMaestroExecutor(AbstractMaestroPeer<? extends MaestroNote> maestroPeer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractMaestroPeer<? extends MaestroNote> |
getMaestroPeer()
Get the Maestro peer
|
void |
run()
Runs the executor
|
void |
start(String[] topics)
Start running the executor
|
void |
start(String[] topics,
int connectionRetries,
long retryDelay)
Start running the executor
|
void |
stop()
Stops the executor
|
protected AbstractMaestroExecutor(AbstractMaestroPeer<? extends MaestroNote> maestroPeer) throws MaestroConnectionException
maestroPeer - a Maestro peer object is capable of exchange maestro data.MaestroConnectionException - if unable to connect or subscribeprotected AbstractMaestroPeer<? extends MaestroNote> getMaestroPeer()
public void start(String[] topics) throws MaestroConnectionException
topics - the list of topics associated with this executorMaestroConnectionException - if unable to connect to the broker and subscribe to the topicspublic void start(String[] topics, int connectionRetries, long retryDelay) throws MaestroConnectionException
topics - the list of topics associated with this executorMaestroConnectionException - if unable to connect to the broker and subscribe to the topicspublic void stop()
This documentation was released into the public domain.