@Beta public interface DeviceHandshaker extends DeviceConnect
| Modifier and Type | Method and Description |
|---|---|
default void |
addDeviceAgentListener(DeviceAgentListener listener)
Adds a device agent listener.
|
CompletableFuture<Boolean> |
isReachable()
Checks the reachability (connectivity) of a device.
|
default void |
removeDeviceAgentListener(DeviceAgentListener listener)
Removes a device agent listener.
|
void |
roleChanged(MastershipRole newRole)
Notifies the device a mastership role change as decided by the core.
|
connect, disconnecthandler, setHandlerCompletableFuture<Boolean> isReachable()
void roleChanged(MastershipRole newRole)
DeviceAgentEvent
signaling the mastership role accepted by the device.newRole - new mastership roledefault void addDeviceAgentListener(DeviceAgentListener listener)
listener - device agent listenerdefault void removeDeviceAgentListener(DeviceAgentListener listener)
listener - device agent listener