public final class RpcManager extends Manager
This manager allows you to call remote procedures and handle inbound calls, if enabled.
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(Jid jid,
java.lang.String methodName,
Value... parameters)
Calls a remote procedure.
|
void |
setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.
|
isEnabled, setEnabled
public AsyncResult<Value> call(Jid jid, java.lang.String methodName, Value... parameters)
Calls a remote procedure.
jid
- The JID, which will receive the RPC.methodName
- The method name.parameters
- The parameters.public void setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.
rpcHandler
- The RPC handler.Copyright © 2014–2019 XMPP.rocks. All rights reserved.