@Deprecated public class ThriftProtocol extends AbstractProtocol
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_PORT
已过时。
|
static String |
NAME
已过时。
|
| 构造器和说明 |
|---|
ThriftProtocol()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
已过时。
Destroy protocol:
1. |
<T> Exporter<T> |
export(Invoker<T> invoker)
已过时。
Export service for remote invocation:
1. |
int |
getDefaultPort()
已过时。
Get default port when user doesn't config the port.
|
getExporterMap, getExporters, getServers, referpublic static final int DEFAULT_PORT
public int getDefaultPort()
Protocolpublic <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 void destroy()
Protocoldestroy 在接口中 Protocoldestroy 在类中 AbstractProtocolCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.