public class RedisProtocol extends AbstractProtocol
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
RedisProtocol() |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
destroy, 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 occupiedCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.