public class Command extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static byte |
OPT_DELETE_SESSION |
static byte |
OPT_JOIN |
static byte |
OPT_QUIT |
Constructor and Description |
---|
Command(byte operator,
String session,
String key) |
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
int |
getOperator() |
String |
getSession() |
int |
getSrc() |
boolean |
isLocal() |
static Command |
join() |
static int |
LocalID()
返回本地的专有标识
|
static void |
main(String[] args) |
static Command |
parse(String data) |
static Command |
quit() |
void |
setKey(String key) |
void |
setOperator(int operator) |
void |
setSession(String session) |
String |
toString() |
public static final byte OPT_JOIN
public static final byte OPT_DELETE_SESSION
public static final byte OPT_QUIT
public static final int LocalID()
public static Command join()
public static Command quit()
public boolean isLocal()
public int getOperator()
public String getKey()
public int getSrc()
public void setOperator(int operator)
public void setKey(String key)
public String getSession()
public void setSession(String session)
public static void main(String[] args)
Copyright © 2018. All rights reserved.