|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Channel represents a connection point to the outside world.
Method Summary | |
MsgContext |
createMsgContext()
Create a new request endpoint. |
int |
flush(Msg msg,
MsgContext ep)
Flush the data to the client. |
java.lang.String |
getChannelName()
Return the identifying name of this Channel. |
int |
invoke(Msg msg,
MsgContext ep)
Invoke the request chain. |
boolean |
isSameAddress(MsgContext ep)
Confirm that a shutdown request was recieved form us. |
int |
receive(Msg msg,
MsgContext ep)
Recieve a message from the client. |
void |
registerRequest(Request req,
MsgContext ep,
int count)
Register a new Request in the Request pool. |
int |
send(Msg msg,
MsgContext ep)
Send a message back to the client. |
Method Detail |
public java.lang.String getChannelName()
public int send(Msg msg, MsgContext ep) throws java.io.IOException
msg
- The message to send.ep
- The connection point for this request.
java.io.IOException
public int receive(Msg msg, MsgContext ep) throws java.io.IOException
msg
- The place to recieve the data into.ep
- The connection point for this request.
java.io.IOException
public int flush(Msg msg, MsgContext ep) throws java.io.IOException
java.io.IOException
public int invoke(Msg msg, MsgContext ep) throws java.io.IOException
java.io.IOException
public boolean isSameAddress(MsgContext ep)
public void registerRequest(Request req, MsgContext ep, int count)
public MsgContext createMsgContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |