public class RpcServerRemoting extends RpcRemoting
addressParser, connectionManager| Constructor and Description |
|---|
RpcServerRemoting(CommandFactory commandFactory)
default constructor
|
RpcServerRemoting(CommandFactory commandFactory,
RemotingAddressParser addressParser,
DefaultConnectionManager connectionManager) |
| Modifier and Type | Method and Description |
|---|---|
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 RpcServerRemoting(CommandFactory commandFactory)
public RpcServerRemoting(CommandFactory commandFactory, RemotingAddressParser addressParser, DefaultConnectionManager connectionManager)
addressParser - connectionManager - 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 void oneway(Url url, Object request, InvokeContext invokeContext) throws RemotingException
RpcRemotingoneway in class RpcRemotingRemotingExceptionRpcRemoting.oneway(com.alipay.remoting.Url, java.lang.Object, InvokeContext)public RpcResponseFuture invokeWithFuture(Url url, Object request, InvokeContext invokeContext, int timeoutMillis) throws RemotingException
RpcRemotinginvokeWithFuture in class RpcRemotingRemotingExceptionRpcRemoting.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
RpcRemotinginvokeWithCallback in class RpcRemotingRemotingExceptionRpcRemoting.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 RpcRemotingCopyright © 2024. All rights reserved.