public interface Route
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateIdentifier(int pos)
Generates a string identifying the data producer chain the subscriber is receiving data from.
|
int |
id()
Unique value identifying the route.
|
boolean |
isActive()
Checks if the route is
|
void |
remove()
Removes the route and marks the object as inactive
|
boolean |
resubscribe(int pos)
Reactivates the stream the subscriber is listening to.
|
boolean |
resubscribe(int pos,
Subscriber subscriber)
Reactivates the stream the subscriber is listening to and updates the data subscriber.
|
boolean |
setEnvironment(int pos,
java.lang.Object... env)
Sets the environment values passed into the
apply function |
boolean |
unsubscribe(int pos)
Quiets the stream the subscriber is listening to, does nothing if the subscriber is handling log data
|
java.lang.String generateIdentifier(int pos)
AnonymousRoute.identifier()
if syncing data
using the AnonymousRoute
interface.pos
- Numerical position of the subscriber to interact with, starting from 0param
value is out of boundsboolean setEnvironment(int pos, java.lang.Object... env)
apply
functionpos
- Numerical position of the subscriber to interact with, starting from 0env
- Environment values to use with the subscriberboolean unsubscribe(int pos)
pos
- Numerical position of the subscriber to interact with, starting at 0boolean resubscribe(int pos)
pos
- Numerical position of the subscriber to interact with, starting at 0boolean resubscribe(int pos, Subscriber subscriber)
pos
- Numerical position of the subscriber to interact with, starting at 0subscriber
- New subscriber to handle the received datavoid remove()
boolean isActive()
int id()
MetaWearBoard.lookupRoute(int)
lookupRoute}
to retrieve the current object