|
JBoss Remoting 3 3.2.0.CR6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Channel
The most basic level of communications in a Remoting connection. A channel simply sends and receives messages. No request/reply correlation is performed. Messages are received in the order that they are written; however, multiple messages may flow in or out concurrently on a single channel. In particular, a later message may complete before an earlier message does.
| Nested Class Summary | |
|---|---|
static interface |
Channel.Receiver
A handler for an incoming message. |
| Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable |
|---|
HandleableCloseable.Key |
| Method Summary | |
|---|---|
void |
close()
Close this channel. |
Connection |
getConnection()
Get the connection associated with this channel. |
void |
receiveMessage(Channel.Receiver handler)
Initiate processing of the next message, when it comes in. |
MessageOutputStream |
writeMessage()
Write a new message on to this channel, blocking if necessary. |
void |
writeShutdown()
Send an end-of-messages signal to the remote side. |
| Methods inherited from interface org.jboss.remoting3.Attachable |
|---|
getAttachments |
| Methods inherited from interface org.jboss.remoting3.HandleableCloseable |
|---|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, closeAsync |
| Method Detail |
|---|
Connection getConnection()
MessageOutputStream writeMessage()
throws IOException
IOException - if a new message cannot be written
void writeShutdown()
throws IOException
IOException - if the message could not be writtenvoid receiveMessage(Channel.Receiver handler)
handler - the handler for the next incoming message
void close()
throws IOException
close in interface Closeableclose in interface HandleableCloseable<Channel>IOException - if a failure occurs during close
|
JBoss Remoting 3 3.2.0.CR6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||