|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
A simple interface that is used to wrap access to the OtpConnection class in order to support caching of OptConnections via method interception. Note: The surface area of the API is all that is required to implement administrative functionality for the Spring AMQP admin project. To access the underlying OtpConnection, use the method getTargetConnection on the interface ConnectionProxy that is implemented by DefaultConnection.
Method Summary | |
---|---|
void |
close()
Close the connection to the remote node. |
com.ericsson.otp.erlang.OtpErlangObject |
receiveRPC()
Receive an RPC reply from the remote Erlang node. |
void |
sendRPC(String mod,
String fun,
com.ericsson.otp.erlang.OtpErlangList args)
Send an RPC request to the remote Erlang node. |
Method Detail |
---|
void close()
void sendRPC(String mod, String fun, com.ericsson.otp.erlang.OtpErlangList args) throws IOException
{ self, { call, Mod, Fun, Args, user } }
Note that this method has unpredicatble results if the remote node is not an Erlang node.
mod
- the name of the Erlang module containing the function to
be called.fun
- the name of the function to call.args
- a list of Erlang terms, to be used as arguments to the
function.
IOException
- if the connection is not active or a communication
error occurs.com.ericsson.otp.erlang.OtpErlangObject receiveRPC() throws IOException, com.ericsson.otp.erlang.OtpErlangExit, com.ericsson.otp.erlang.OtpAuthException
{ rex, Term }
IOException
- if the connection is not active or a communication
error occurs.
com.ericsson.otp.erlang.OtpErlangExit
- if an exit signal is received from a process on the
peer node.
com.ericsson.otp.erlang.OtpAuthException
- if the remote node sends a message containing an
invalid cookie.
|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |