public abstract class ONSClientAbstract extends Object implements Admin
| Modifier and Type | Field and Description |
|---|---|
protected String |
nameServerAddr |
protected Properties |
properties |
protected SessionCredentials |
sessionCredentials |
protected AtomicBoolean |
started |
protected AsyncDispatcher |
traceDispatcher |
protected static String |
WSADDR_INTERNAL |
protected static long |
WSADDR_INTERNAL_TIMEOUTMILLS |
protected static String |
WSADDR_INTERNET |
protected static long |
WSADDR_INTERNET_TIMEOUTMILLS |
| Constructor and Description |
|---|
ONSClientAbstract(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildIntanceName() |
protected void |
checkONSProducerServiceState(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl producer) |
String |
getNameServerAddr() |
boolean |
isClosed() |
boolean |
isStarted() |
void |
shutdown() |
void |
start() |
protected abstract void |
updateNameServerAddr(String newAddrs) |
protected static final String WSADDR_INTERNAL
protected static final String WSADDR_INTERNET
protected static final long WSADDR_INTERNAL_TIMEOUTMILLS
protected static final long WSADDR_INTERNET_TIMEOUTMILLS
protected final Properties properties
protected final SessionCredentials sessionCredentials
protected String nameServerAddr
protected AsyncDispatcher traceDispatcher
protected final AtomicBoolean started
public ONSClientAbstract(Properties properties)
protected abstract void updateNameServerAddr(String newAddrs)
public String getNameServerAddr()
protected String buildIntanceName()
protected void checkONSProducerServiceState(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl producer)
Copyright © 2012–2018. All rights reserved.