@Deprecated public interface Protocol extends Protocol
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Exporter<T> |
export(Invoker<T> invoker)
已过时。
|
default <T> Exporter<T> |
export(Invoker<T> invoker)
已过时。
Export service for remote invocation:
1. |
default List<ProtocolServer> |
getServers()
已过时。
Get all servers serving this protocol
|
<T> Invoker<T> |
refer(Class<T> aClass,
URL url)
已过时。
|
default <T> Invoker<T> |
refer(Class<T> aClass,
URL url)
已过时。
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 在接口中 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 在接口中 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 在接口中 ProtocolCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.