public class ConnectionControl extends BaseCommand
Modifier and Type | Field and Description |
---|---|
protected boolean |
close |
protected String |
connectedBrokers |
static byte |
DATA_STRUCTURE_TYPE |
protected boolean |
exit |
protected boolean |
faultTolerant |
protected boolean |
rebalanceConnection |
protected String |
reconnectTo |
protected boolean |
resume |
protected boolean |
suspend |
protected byte[] |
token |
commandId, responseRequired
Constructor and Description |
---|
ConnectionControl() |
Modifier and Type | Method and Description |
---|---|
String |
getConnectedBrokers() |
byte |
getDataStructureType() |
String |
getReconnectTo() |
byte[] |
getToken() |
boolean |
isClose() |
boolean |
isConnectionControl() |
boolean |
isExit() |
boolean |
isFaultTolerant() |
boolean |
isRebalanceConnection() |
boolean |
isResume() |
boolean |
isSuspend() |
void |
setClose(boolean close) |
void |
setConnectedBrokers(String connectedBrokers) |
void |
setExit(boolean exit) |
void |
setFaultTolerant(boolean faultTolerant) |
void |
setRebalanceConnection(boolean rebalanceConnection) |
void |
setReconnectTo(String reconnectTo) |
void |
setResume(boolean resume) |
void |
setSuspend(boolean suspend) |
void |
setToken(byte[] token) |
Response |
visit(CommandVisitor visitor) |
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
public static final byte DATA_STRUCTURE_TYPE
protected boolean suspend
protected boolean resume
protected boolean close
protected boolean exit
protected boolean faultTolerant
protected String connectedBrokers
protected String reconnectTo
protected byte[] token
protected boolean rebalanceConnection
public ConnectionControl()
public byte getDataStructureType()
public Response visit(CommandVisitor visitor) throws Exception
Exception
public boolean isConnectionControl()
isConnectionControl
in interface Command
isConnectionControl
in class BaseCommand
public boolean isClose()
public void setClose(boolean close)
close
- The close to set.public boolean isExit()
public void setExit(boolean exit)
exit
- The exit to set.public boolean isFaultTolerant()
public void setFaultTolerant(boolean faultTolerant)
faultTolerant
- The faultTolerant to set.public boolean isResume()
public void setResume(boolean resume)
resume
- The resume to set.public boolean isSuspend()
public void setSuspend(boolean suspend)
suspend
- The suspend to set.public String getConnectedBrokers()
public void setConnectedBrokers(String connectedBrokers)
connectedBrokers
- the connectedBrokers to setpublic String getReconnectTo()
public void setReconnectTo(String reconnectTo)
reconnectTo
- the reconnectTo to setpublic boolean isRebalanceConnection()
public void setRebalanceConnection(boolean rebalanceConnection)
rebalanceConnection
- the rebalanceConnection to setpublic byte[] getToken()
public void setToken(byte[] token)
token
- the token to setCopyright © 2005–2016 The Apache Software Foundation. All rights reserved.