public abstract class AbstractProxyProtocol extends AbstractProtocol
| Constructor and Description |
|---|
AbstractProxyProtocol() |
AbstractProxyProtocol(Class<?>... exceptions) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRpcException(Class<?> exception) |
<T> Exporter<T> |
export(Invoker<T> invoker)
Export service for remote invocation:
1. |
ProxyFactory |
getProxyFactory() |
<T> Invoker<T> |
refer(Class<T> type,
URL url)
Refer a remote service:
1. |
void |
setProxyFactory(ProxyFactory proxyFactory) |
destroyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultPortpublic AbstractProxyProtocol()
public AbstractProxyProtocol(Class<?>... exceptions)
public void addRpcException(Class<?> exception)
public ProxyFactory getProxyFactory()
public void setProxyFactory(ProxyFactory proxyFactory)
public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedpublic <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
ProtocolT - Service typetype - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.