Package rocks.xmpp.extensions.rpc
Interface RpcManager
-
- All Known Implementing Classes:
AbstractRpcManager,ClientRpcManager
public interface RpcManagerAllows you to call remote procedures and handle inbound calls.- See Also:
- XEP-0009: Jabber-RPC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncResult<Value>call(Jid jid, String methodName, Value... parameters)Calls a remote procedure.voidsetRpcHandler(RpcHandler rpcHandler)Sets the RPC handler, which will handle RPCs.
-
-
-
Method Detail
-
call
AsyncResult<Value> call(Jid jid, String methodName, Value... parameters)
Calls a remote procedure.- Parameters:
jid- The JID, which will receive the RPC.methodName- The method name.parameters- The parameters.- Returns:
- The async result with the returned value.
-
setRpcHandler
void setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.- Parameters:
rpcHandler- The RPC handler.
-
-