@Extension(value="dubbo") @Singleton public class DubboProtocol extends AbstractProtocol
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
COMPATIBLE_CODEC_NAME |
static int |
DEFAULT_PORT |
static String |
NAME |
| 构造器和说明 |
|---|
DubboProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
<T> Exporter<T> |
export(Invoker<T> invoker) |
int |
getDefaultPort() |
static DubboProtocol |
getDubboProtocol() |
Collection<Exporter<?>> |
getExporters() |
Invoker<?> |
getInvoker(Channel channel,
Invocation inv) |
Collection<Invoker<?>> |
getInvokers() |
Collection<ExchangeServer> |
getServers() |
<T> Invoker<T> |
refer(Class<T> serviceType,
com.alibaba.dubbo.common.URL url) |
public static final int DEFAULT_PORT
public static DubboProtocol getDubboProtocol()
public Collection<ExchangeServer> getServers()
public Collection<Exporter<?>> getExporters()
public Invoker<?> getInvoker(Channel channel, Invocation inv) throws RemotingException
public Collection<Invoker<?>> getInvokers()
public int getDefaultPort()
public <T> Exporter<T> export(Invoker<T> invoker) throws JahhanException
JahhanExceptionpublic <T> Invoker<T> refer(Class<T> serviceType, com.alibaba.dubbo.common.URL url) throws JahhanException
JahhanExceptionpublic void destroy()
destroy 在接口中 Protocoldestroy 在类中 AbstractProtocolCopyright © 2018. All rights reserved.