public static class ReconnectFilter.ConnectionLostEvent extends Event
ReconnectFilter.onConnectionLost(ConnectionLostEvent)
to aid in making a decision.Modifier and Type | Method and Description |
---|---|
ReconnectFilter.ConnectFailEvent |
connectionFailEvent()
Returns the more detailed information about why the connection failed.
|
BleDevice |
device()
|
int |
failureCount()
The number of times a reconnect attempt has failed so far.
|
java.lang.String |
macAddress()
|
BleNode |
node()
The node that is currently trying to reconnect.
|
Interval |
previousDelay()
The previous
Interval returned through ReconnectFilter.ConnectionLostPlease.retryIn(Interval) ,
or Interval.ZERO for the first invocation. |
BleServer |
server()
|
java.lang.String |
toString() |
Interval |
totalTimeReconnecting()
The total amount of time since the device disconnected and we started the reconnect process.
|
ReconnectFilter.Type |
type()
See
ReconnectFilter.Type for more info. |
public BleNode node()
public BleDevice device()
public BleServer server()
public java.lang.String macAddress()
public int failureCount()
public Interval totalTimeReconnecting()
public Interval previousDelay()
Interval
returned through ReconnectFilter.ConnectionLostPlease.retryIn(Interval)
,
or Interval.ZERO
for the first invocation.public ReconnectFilter.ConnectFailEvent connectionFailEvent()
ReconnectFilter.onConnectFailed(ConnectFailEvent)
before the call is made to ReconnectFilter.onConnectionLost(ConnectionLostEvent)
. For the first call to ReconnectFilter.onConnectionLost(ConnectionLostEvent)
,
right after a spontaneous disconnect occurred, the connection didn't fail, so UsesCustomNull.isNull()
will return true
.public ReconnectFilter.Type type()
ReconnectFilter.Type
for more info.public java.lang.String toString()
toString
in class java.lang.Object