public abstract class AbstractProtocol extends Object implements Protocol
| Constructor and Description |
|---|
AbstractProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy protocol:
1. |
Map<String,Exporter<?>> |
getExporterMap() |
Collection<Exporter<?>> |
getExporters() |
List<ProtocolServer> |
getServers()
Get all servers serving this protocol
|
<T> Invoker<T> |
refer(Class<T> type,
URL url)
Refer a remote service:
1. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexport, getDefaultPortpublic List<ProtocolServer> getServers()
ProtocolgetServers in interface Protocolpublic void destroy()
Protocolpublic <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
Protocolrefer in interface ProtocolT - Service typetype - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providerpublic Collection<Exporter<?>> getExporters()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.