@Beta public interface DeviceHandshaker extends DeviceConnect
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
isReachable()
Checks the reachability (connectivity) of a device.
|
java.util.concurrent.CompletableFuture<MastershipRole> |
roleChanged(MastershipRole newRole)
Applies on the device a mastership role change as decided by the core.
|
connect, disconnect
handler, setHandler
java.util.concurrent.CompletableFuture<java.lang.Boolean> isReachable()
java.util.concurrent.CompletableFuture<MastershipRole> roleChanged(MastershipRole newRole)
newRole
- newly determined mastership role