public final class RpcManager extends Manager
By default this manager is disabled. If you want to support RPC (i.e. handle inbound calls), enable it and set a RPC handler, which allows you to handle inbound calls.
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<Value> |
call(rocks.xmpp.addr.Jid jid,
String methodName,
Value... parameters)
Calls a remote procedure.
|
void |
setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.
|
isEnabled, setEnabledpublic AsyncResult<Value> call(rocks.xmpp.addr.Jid jid, String methodName, Value... parameters)
jid - The JID, which will receive the RPC.methodName - The method name.parameters - The parameters.public void setRpcHandler(RpcHandler rpcHandler)
rpcHandler - The RPC handler.Copyright © 2014–2016 XMPP.rocks. All rights reserved.