mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-6470 - Remove unused ControlCommand handling in client
This commit is contained in:
parent
c1157fe1f0
commit
338a74dfa4
|
@ -1873,7 +1873,6 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
|
||||
@Override
|
||||
public Response processControlCommand(ControlCommand command) throws Exception {
|
||||
onControlCommand(command);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -2221,25 +2220,6 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
}
|
||||
}
|
||||
|
||||
protected void onControlCommand(ControlCommand command) {
|
||||
String text = command.getCommand();
|
||||
if (text != null) {
|
||||
if ("shutdown".equals(text)) {
|
||||
LOG.info("JVM told to shutdown");
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
// TODO Should we handle the "close" case?
|
||||
// if (false && "close".equals(text)){
|
||||
// LOG.error("Broker " + getBrokerInfo() + "shutdown connection");
|
||||
// try {
|
||||
// close();
|
||||
// } catch (JMSException e) {
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
protected void onConnectionControl(ConnectionControl command) {
|
||||
if (command.isFaultTolerant()) {
|
||||
this.optimizeAcknowledge = false;
|
||||
|
|
Loading…
Reference in New Issue