Service.Election, Service.ElectionListenerActivity.ServiceState| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
Client(BrokerNode node,
TransportConfig transportConfig,
TransportClient transportClient,
NameServerConfig nameServerConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(EventListener<TransportEvent> listener) |
Future<Command> |
async(Command request) |
void |
async(Command request,
CommandCallback callback) |
Future<Command> |
async(Command request,
long timeout) |
void |
async(Command request,
long timeout,
CommandCallback callback) |
protected void |
doStart() |
protected void |
doStop() |
TransportAttribute |
getAttribute() |
ClientConnectionInfo |
getConnectionInfo() |
long |
getLastUseTime() |
ClientState |
getState() |
Transport |
getTransport() |
void |
handleAddConnection() |
void |
handleDisconnection() |
void |
heartbeat(long timeout) |
void |
oneway(Command request,
long timeout) |
void |
removeListener(EventListener<TransportEvent> listener) |
Command |
sync(Command request) |
Command |
sync(Command request,
long timeout) |
getServiceState, isReady, isStarted, isStopped, start, stop, stop, validate, willStopafterStart, afterStop, await, beforeStart, beforeStop, convert, getReadLock, getWriteLock, startErrorpublic Client(BrokerNode node, TransportConfig transportConfig, TransportClient transportClient, NameServerConfig nameServerConfig)
public void heartbeat(long timeout)
public void async(Command request, long timeout, CommandCallback callback)
public void async(Command request, CommandCallback callback)
public void oneway(Command request, long timeout)
public void handleAddConnection()
public void handleDisconnection()
public ClientState getState()
public ClientConnectionInfo getConnectionInfo()
public TransportAttribute getAttribute()
public Transport getTransport()
public long getLastUseTime()
public void addListener(EventListener<TransportEvent> listener)
public void removeListener(EventListener<TransportEvent> listener)
Copyright © 2020 Joyqueue Community. All rights reserved.