|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Channel
Creates a channel to perform invocations through the NMR.
Channels are created by the NMR. They are used
by Endpoints to communicate with the NMR, but they
can also be used by external clients. In such a case, the
Channel must be closed using the close() method
after use.
NMR.createChannel()| Method Summary | |
|---|---|
void |
close()
Closes the channel, freeing up any resources (like sockets, threads etc). |
Exchange |
createExchange(Pattern pattern)
Creates a new exchange. |
NMR |
getNMR()
Access to the bus |
void |
send(Exchange exchange)
An asynchronous invocation of the service |
boolean |
sendSync(Exchange exchange)
Synchronously send the exchange, blocking until the exchange is returned. |
boolean |
sendSync(Exchange exchange,
long timeout)
Synchronously send the exchange |
| Method Detail |
|---|
NMR getNMR()
Exchange createExchange(Pattern pattern)
pattern - specify the InOnly / InOut / RobustInOnly / RobustInOut
void send(Exchange exchange)
exchange - the exchange to sendboolean sendSync(Exchange exchange)
exchange - the exchange to send
true if the exchange has been processed succesfully
boolean sendSync(Exchange exchange,
long timeout)
exchange - the exchange to sendtimeout - time to wait in milliseconds
true if the exchange has been processed succesfullyvoid close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||