Package com.slack.api.model.event
Class GoodbyeEvent
java.lang.Object
com.slack.api.model.event.GoodbyeEvent
- All Implemented Interfaces:
Event,java.io.Serializable
public class GoodbyeEvent extends java.lang.Object implements Event
The server intends to close the connection soon.
The goodbye event may be sent by a server that expects it will close the connection after an unspecified amount of time. A well formed client should reconnect to avoid data loss.
Other scenarios where you might encounter the goodbye event are:
- reaching the maximum duration of a RTM web socket connection (8 hours)
- your workspace has been inactive for over two minutes
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_NAME -
Constructor Summary
Constructors Constructor Description GoodbyeEvent() -
Method Summary
-
Field Details
-
TYPE_NAME
public static final java.lang.String TYPE_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
GoodbyeEvent
public GoodbyeEvent()
-
-
Method Details
-
getType
public java.lang.String getType() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-