@Deprecated public class ThriftProtocol extends AbstractProtocol
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
Deprecated.
|
static String |
NAME
Deprecated.
|
| Constructor and Description |
|---|
ThriftProtocol()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
Destroy protocol:
1. |
<T> Exporter<T> |
export(Invoker<T> invoker)
Deprecated.
Export service for remote invocation:
1. |
int |
getDefaultPort()
Deprecated.
Get default port when user doesn't config the port.
|
getExporterMap, getExporters, getServers, referpublic static final int DEFAULT_PORT
public static final String NAME
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 in interface Protocoldestroy in class AbstractProtocolCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.