public class NettyClient extends AbstractRemotingClient
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
REMOTING_TYPE |
| 构造器和说明 |
|---|
NettyClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doConnect() |
RemotingChannelHolder |
doStart(RemotingConfiguration config) |
void |
doStop() |
RemotingChannelHolder |
getChannel() |
SocketAddress |
getRemoteAddress() |
String |
getRemotingType() |
boolean |
isActive() |
boolean |
isOpen() |
void |
reconnect(int retryCount) |
protected void |
reconnect(int currRetryCount,
int retryCount) |
getId, getWeight, isStart, setWeight, start, stoppublic RemotingChannelHolder doStart(RemotingConfiguration config) throws RpcRemotingException
doStart 在类中 AbstractRemotingEndpointRpcRemotingExceptionpublic void doStop()
throws RpcRemotingException
doStop 在类中 AbstractRemotingEndpointRpcRemotingExceptionpublic boolean isOpen()
public boolean isActive()
public RemotingChannelHolder getChannel()
public String getRemotingType()
public void doConnect()
public void reconnect(int retryCount)
throws TimeoutException
TimeoutExceptionprotected void reconnect(int currRetryCount,
int retryCount)
throws TimeoutException
TimeoutExceptionpublic SocketAddress getRemoteAddress()
Copyright © 2020. All rights reserved.