| Modifier and Type | Field and Description |
|---|---|
protected String |
accessToken |
protected Broker |
broker |
protected int |
invokeTimeout |
protected int |
mode |
protected String |
mq |
protected String |
registerToken |
| Constructor and Description |
|---|
MqAdmin(Broker broker,
String mq,
MessageMode... mode) |
MqAdmin(MqConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createMQ() |
String |
getAccessToken() |
int |
getInvokeTimeout() |
int |
getMode() |
String |
getMq() |
String |
getRegisterToken() |
protected org.zstacks.znet.Message |
invokeCreateMQ(org.zstacks.znet.Message req)
默认使用broker代理创建,可以覆盖为RemotingClient直接创建,比如Consumer
|
protected ClientHint |
myClientHint() |
void |
setAccessToken(String accessToken) |
void |
setInvokeTimeout(int invokeTimeout) |
void |
setMode(int mode) |
void |
setMq(String mq) |
void |
setRegisterToken(String registerToken) |
protected final Broker broker
protected String mq
protected String accessToken
protected String registerToken
protected int mode
protected int invokeTimeout
public MqAdmin(Broker broker, String mq, MessageMode... mode)
public MqAdmin(MqConfig config)
protected ClientHint myClientHint()
protected org.zstacks.znet.Message invokeCreateMQ(org.zstacks.znet.Message req)
throws IOException,
InterruptedException
req - IOExceptionInterruptedExceptionpublic boolean createMQ()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic String getAccessToken()
public void setAccessToken(String accessToken)
public String getRegisterToken()
public void setRegisterToken(String registerToken)
public String getMq()
public void setMq(String mq)
public int getMode()
public void setMode(int mode)
public int getInvokeTimeout()
public void setInvokeTimeout(int invokeTimeout)
Copyright © 2015. All rights reserved.