public final class ConnectionEvent extends EventObject
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionEvent.Type
The connection event type.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Gets the cause of the disconnection or reconnection failure.
|
Duration |
getNextReconnectionAttempt()
Gets the duration until the next reconnection is attempted.
|
ConnectionEvent.Type |
getType()
Gets the event type.
|
String |
toString() |
getSourcepublic final Throwable getCause()
ConnectionEvent.Type.RECONNECTION_SUCCEEDED type.public final Duration getNextReconnectionAttempt()
ConnectionEvent.Type.RECONNECTION_PENDING.
Otherwise Duration.ZERO is returned.public final ConnectionEvent.Type getType()
public final String toString()
toString in class EventObjectCopyright © 2014–2016 XMPP.rocks. All rights reserved.