6566676869707172737475
else { brokerAdmin.setExchangeAttrib(ex, "LimitBehavior", "REMOVE_OLDEST"); } } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/drop")
8586878889909192939495
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "LimitBehavior", "FLOW_CONTROL"); } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/size_limit")
114115116117118119120121122123124
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "MaxTotalMsgBytes", Long.valueOf(sizeLimit)); } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/count_limit")
143144145146147148149150151152
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "MaxNumMsgs", Long.valueOf(countLimit)); } finally { brokerAdmin.jmxCloseServer(); } } } }