public interface RouteManager
Modifier and Type | Interface and Description |
---|---|
static interface |
RouteManager.MessageHandler
Processes messages received from data producers (i.e.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getLogKeys()
Retrieves available logging keys for this route
|
java.util.Collection<java.lang.String> |
getStreamKeys()
Retrieves available subscription keys for this route
|
int |
id()
Retrieves the ID
|
boolean |
isActive()
Retrieves the active state of the manager.
|
void |
remove()
Removes the underlying route from the board and marks the manager as inactive
|
boolean |
setLogMessageHandler(java.lang.String logKey,
RouteManager.MessageHandler processor)
Assigns a handler to process data received from the logger.
|
boolean |
subscribe(java.lang.String streamKey,
RouteManager.MessageHandler processor)
Subscribes to a data stream.
|
boolean |
unsubscribe(java.lang.String streamKey)
Unsubscribes from a data stream.
|
int id()
void remove()
boolean isActive()
java.util.Collection<java.lang.String> getStreamKeys()
boolean unsubscribe(java.lang.String streamKey)
streamKey
- Unique key identifying the streamboolean subscribe(java.lang.String streamKey, RouteManager.MessageHandler processor)
streamKey
- Unique key identifying the streamprocessor
- Processor to handle the stream datajava.util.Collection<java.lang.String> getLogKeys()
boolean setLogMessageHandler(java.lang.String logKey, RouteManager.MessageHandler processor)
logKey
- Unique key identifying the loggerprocessor
- Processor to handle the log data