public class Connection<C extends ExecutionContext>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId() |
void |
sendMessage(Message message)
Send the specified Message from this connection.
|
void |
start()
Start sending, receiving, and executing messages.
|
void |
stop()
Stop sending, receiving, and executing messages, and close input and output streams.
|
public void start()
public void stop()
public java.lang.String getId()
public void sendMessage(Message message)
message
- The message to be sent.