public class RpcClientRemoting extends RpcRemoting
addressParser, connectionManager| Constructor and Description |
|---|
RpcClientRemoting(CommandFactory commandFactory,
RemotingAddressParser addressParser,
ConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
getConnectionAndInitInvokeContext(Url url,
InvokeContext invokeContext)
Get connection and set init invokeContext if invokeContext not
null |
Object |
invokeSync(Url url,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Synchronous rpc invocation.
|
void |
invokeWithCallback(Url url,
Object request,
InvokeContext invokeContext,
InvokeCallback invokeCallback,
int timeoutMillis)
Rpc invocation with callback.
|
RpcResponseFuture |
invokeWithFuture(Url url,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Rpc invocation with future returned.
|
void |
oneway(Url url,
Object request,
InvokeContext invokeContext)
Oneway rpc invocation.
|
protected void |
preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection) |
createInvokeFuture, createInvokeFuture, invokeSync, invokeSync, invokeWithCallback, invokeWithCallback, invokeWithFuture, invokeWithFuture, oneway, oneway, toRemotingCommandgetCommandFactory, getCommandFactory, getCommandFactory, invokeSync, invokeWithCallback, invokeWithFuture, onewaypublic RpcClientRemoting(CommandFactory commandFactory, RemotingAddressParser addressParser, ConnectionManager connectionManager)
public void oneway(Url url, Object request, InvokeContext invokeContext) throws RemotingException, InterruptedException
RpcRemotingoneway in class RpcRemotingRemotingExceptionInterruptedExceptionRpcRemoting.oneway(com.alipay.remoting.Url, java.lang.Object, InvokeContext)public Object invokeSync(Url url, Object request, InvokeContext invokeContext, int timeoutMillis) throws RemotingException, InterruptedException
RpcRemotinginvokeSync in class RpcRemotingRemotingExceptionInterruptedExceptionRpcRemoting.invokeSync(com.alipay.remoting.Url, java.lang.Object, InvokeContext, int)public RpcResponseFuture invokeWithFuture(Url url, Object request, InvokeContext invokeContext, int timeoutMillis) throws RemotingException, InterruptedException
RpcRemotinginvokeWithFuture in class RpcRemotingRemotingExceptionInterruptedExceptionRpcRemoting.invokeWithFuture(com.alipay.remoting.Url, java.lang.Object, InvokeContext, int)public void invokeWithCallback(Url url, Object request, InvokeContext invokeContext, InvokeCallback invokeCallback, int timeoutMillis) throws RemotingException, InterruptedException
RpcRemotingprotected void preProcessInvokeContext(InvokeContext invokeContext, RemotingCommand cmd, Connection connection)
preProcessInvokeContext in class RpcRemotingRpcRemoting.preProcessInvokeContext(InvokeContext, RemotingCommand, Connection)protected Connection getConnectionAndInitInvokeContext(Url url, InvokeContext invokeContext) throws RemotingException, InterruptedException
nullurl - target urlinvokeContext - invoke context to setRemotingExceptionInterruptedExceptionCopyright © 2024. All rights reserved.