@Deprecated public interface Protocol extends Protocol
| Modifier and Type | Method and Description |
|---|---|
<T> Exporter<T> |
export(Invoker<T> invoker)
Deprecated.
|
default <T> Exporter<T> |
export(Invoker<T> invoker)
Deprecated.
Export service for remote invocation:
1. |
default List<ProtocolServer> |
getServers()
Deprecated.
Get all servers serving this protocol
|
<T> Invoker<T> |
refer(Class<T> aClass,
URL url)
Deprecated.
|
default <T> Invoker<T> |
refer(Class<T> aClass,
URL url)
Deprecated.
Refer a remote service:
1. |
destroy, getDefaultPort<T> Exporter<T> export(Invoker<T> invoker) throws RpcException
RpcException<T> Invoker<T> refer(Class<T> aClass, URL url) throws RpcException
RpcExceptiondefault <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
Protocolexport in interface ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedRpcExceptiondefault <T> Invoker<T> refer(Class<T> aClass, URL url) throws RpcException
Protocolrefer in interface ProtocolT - Service typeaClass - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providerRpcExceptiondefault List<ProtocolServer> getServers()
ProtocolgetServers in interface ProtocolCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.