public class DisconnectEvent extends Event implements GenericSnapshotEvent
Disconnection from the IRC server is detected immediately if either we or the server close the connection normally. If the connection to the server is lost, but neither we nor the server have explicitly closed the connection, then it may take a few minutes to detect (this is commonly referred to as a "ping timeout").
| Constructor and Description |
|---|
DisconnectEvent(PircBotX bot,
UserChannelDaoSnapshot userChannelDaoSnapshot,
Exception disconnectException) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
UserChannelDaoSnapshot |
getDaoSnapshot()
Deprecated.
|
Exception |
getDisconnectException()
Exception encountered during disconnection, if any
|
UserChannelDaoSnapshot |
getUserChannelDaoSnapshot()
Snapshot of the UserChannelDao data before the event.
|
int |
hashCode() |
void |
respond(String response)
Deprecated.
|
String |
toString() |
compareTo, getBot, getId, getTimestamppublic DisconnectEvent(PircBotX bot, UserChannelDaoSnapshot userChannelDaoSnapshot, Exception disconnectException)
@Deprecated public UserChannelDaoSnapshot getDaoSnapshot()
getUserChannelDaoSnapshot() from
GenericSnapshotEventgetUserChannelDaoSnapshot(),
GenericSnapshotEvent@Deprecated public void respond(String response)
UnsupportedOperationException since we can't respond to a server
we just disconnected from.respond in interface GenericEventrespond in class Eventresponse - The response to send@Generated(value="lombok") public Exception getDisconnectException()
@Generated(value="lombok") public UserChannelDaoSnapshot getUserChannelDaoSnapshot()
GenericSnapshotEventgetUserChannelDaoSnapshot in interface GenericSnapshotEventConfiguration.Builder.setSnapshotsEnabled(boolean)Copyright © 2010–2020 Leon Blakey. All rights reserved.