|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.remoting.BaseRemoting
com.alipay.remoting.rpc.RpcRemoting
com.alipay.remoting.rpc.RpcClientRemoting
public class RpcClientRemoting
Rpc client remoting
| Field Summary |
|---|
| Fields inherited from class com.alipay.remoting.rpc.RpcRemoting |
|---|
addressParser, connectionManager |
| Constructor Summary | |
|---|---|
RpcClientRemoting(CommandFactory commandFactory,
RemotingAddressParser addressParser,
DefaultConnectionManager connectionManager)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.alipay.remoting.rpc.RpcRemoting |
|---|
createInvokeFuture, createInvokeFuture, invokeSync, invokeSync, invokeWithCallback, invokeWithCallback, invokeWithFuture, invokeWithFuture, oneway, oneway, toRemotingCommand |
| Methods inherited from class com.alipay.remoting.BaseRemoting |
|---|
getCommandFactory, invokeSync, invokeWithCallback, invokeWithFuture, oneway |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RpcClientRemoting(CommandFactory commandFactory,
RemotingAddressParser addressParser,
DefaultConnectionManager connectionManager)
addressParser - connectionManager - | Method Detail |
|---|
public void oneway(Url url,
Object request,
InvokeContext invokeContext)
throws RemotingException,
InterruptedException
RpcRemoting
oneway in class RpcRemotingRemotingException
InterruptedExceptionRpcRemoting.oneway(com.alipay.remoting.Url, java.lang.Object, InvokeContext)
public Object invokeSync(Url url,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
throws RemotingException,
InterruptedException
RpcRemoting
invokeSync in class RpcRemotingRemotingException
InterruptedExceptionRpcRemoting.invokeSync(com.alipay.remoting.Url, java.lang.Object, InvokeContext, int)
public RpcResponseFuture invokeWithFuture(Url url,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
throws RemotingException,
InterruptedException
RpcRemoting
invokeWithFuture in class RpcRemotingRemotingException
InterruptedExceptionRpcRemoting.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
RpcRemoting
invokeWithCallback in class RpcRemotingRemotingException
InterruptedExceptionRpcRemoting.invokeWithCallback(com.alipay.remoting.Url, java.lang.Object, InvokeContext, com.alipay.remoting.InvokeCallback, int)
protected 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
null
url - invokeContext -
RemotingException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||