public interface Connection
Modifier and Type | Method and Description |
---|---|
void |
close()
Shut down the connection.
|
int |
id()
Identify this connection for logging purposes.
|
void |
sendMsg(Object message)
Send a message over the connection to whomever is at the other end.
|
void |
setDebugMode(boolean mode)
Turn debug features for this connection on or off.
|
void close()
int id()
void sendMsg(Object message)
message
- The message to be sent.void setDebugMode(boolean mode)
mode
- If true, turn debug mode on; if false, turn it off.Copyright © 2017. All rights reserved.