public class DynamicProxy extends Object implements InvocationHandler
| Modifier | Constructor and Description |
|---|---|
protected |
DynamicProxy(URI remoteUri,
ClientChannelSelector selector,
RemotingClientChannelHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Class<?> interfaceClass,
URI remoteUri) |
MethodReturn |
invoke(MethodCall methodCall) |
MethodReturn |
invoke(MethodCall methodCall,
Class<?> returnType) |
MethodReturn |
invoke(MethodCall methodCall,
Class<?> returnType,
int executionTimeoutMillisecond) |
MethodReturn |
invoke(MethodCall methodCall,
int executionTimeoutMillisecond) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
setExecutionTimeout(int millisecond) |
void |
setSerializationFormat(String format) |
protected DynamicProxy(URI remoteUri, ClientChannelSelector selector, RemotingClientChannelHandler handler)
public void setExecutionTimeout(int millisecond)
public void setSerializationFormat(String format)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic MethodReturn invoke(MethodCall methodCall) throws RemotingException, FormatterException
RemotingExceptionFormatterExceptionpublic MethodReturn invoke(MethodCall methodCall, Class<?> returnType) throws RemotingException, FormatterException
RemotingExceptionFormatterExceptionpublic MethodReturn invoke(MethodCall methodCall, int executionTimeoutMillisecond) throws RemotingException, FormatterException
RemotingExceptionFormatterExceptionpublic MethodReturn invoke(MethodCall methodCall, Class<?> returnType, int executionTimeoutMillisecond) throws RemotingException, FormatterException
RemotingExceptionFormatterExceptionCopyright © 2021. All rights reserved.