public interface Arduino
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ArduinoListener listener)
Adds a listener
|
String |
get(String key,
Attribute... attributes)
Returns a value
|
KeyValueCache |
getCache()
Returns the current cache implementation
|
ConnectionState |
getCurrentState()
Returns the current state
|
ConnectionState |
getTargetState()
Returns the targeted state
|
void |
removeListener(ArduinoListener listener)
Removes a listener
|
void |
send(String key,
String value)
Sends a message
|
void |
setCache(KeyValueCache cache)
Sets the cache implementation
|
void |
setTargetState(ConnectionState state)
Sets the target state
|
ConnectionState getCurrentState()
ConnectionState getTargetState()
void setTargetState(ConnectionState state)
state - void addListener(ArduinoListener listener)
listener - void removeListener(ArduinoListener listener)
listener - void setCache(KeyValueCache cache)
cache - KeyValueCache getCache()
Copyright © 2015. All Rights Reserved.