public class DisconnectMessage extends AbstractMessage
Modifier and Type | Class and Description |
---|---|
static class |
DisconnectMessage.DisconnectSerializer
A message-specific serializer to avoid compatibility issues
between versions.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR |
static java.lang.String |
FILTERED |
static java.lang.String |
KICK |
static short |
SERIALIZER_ID |
static java.lang.String |
USER_REQUESTED |
Constructor and Description |
---|
DisconnectMessage() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReason() |
java.lang.String |
getType() |
void |
setReason(java.lang.String reason) |
void |
setType(java.lang.String type) |
java.lang.String |
toString() |
isReliable, setReliable
public static final short SERIALIZER_ID
public static final java.lang.String KICK
public static final java.lang.String USER_REQUESTED
public static final java.lang.String ERROR
public static final java.lang.String FILTERED