mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-04 16:29:28 +00:00
This closes #2160
This commit is contained in:
commit
d8ecf24733
@ -69,7 +69,7 @@ public interface PostOffice extends ActiveMQComponent {
|
||||
Integer maxConsumers,
|
||||
Boolean purgeOnNoConsumers,
|
||||
Boolean exclusive,
|
||||
String user) throws Exception;
|
||||
SimpleString user) throws Exception;
|
||||
|
||||
List<Queue> listQueuesForAddress(SimpleString address) throws Exception;
|
||||
|
||||
|
@ -468,7 +468,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
|
||||
Integer maxConsumers,
|
||||
Boolean purgeOnNoConsumers,
|
||||
Boolean exclusive,
|
||||
String user) throws Exception {
|
||||
SimpleString user) throws Exception {
|
||||
synchronized (addressLock) {
|
||||
final QueueBinding queueBinding = (QueueBinding) addressManager.getBinding(name);
|
||||
if (queueBinding == null) {
|
||||
@ -514,7 +514,7 @@ public class PostOfficeImpl implements PostOffice, NotificationListener, Binding
|
||||
}
|
||||
if ((user != null && !user.equals(queue.getUser()) || (user == null && queue.getUser() != null))) {
|
||||
changed = true;
|
||||
queue.setUser(SimpleString.toSimpleString(user));
|
||||
queue.setUser(user);
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
|
@ -2970,7 +2970,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||
Boolean purgeOnNoConsumers,
|
||||
Boolean exclusive,
|
||||
String user) throws Exception {
|
||||
final QueueBinding queueBinding = this.postOffice.updateQueue(new SimpleString(name), routingType, maxConsumers, purgeOnNoConsumers, exclusive, user);
|
||||
final QueueBinding queueBinding = this.postOffice.updateQueue(new SimpleString(name), routingType, maxConsumers, purgeOnNoConsumers, exclusive, new SimpleString(user));
|
||||
if (queueBinding != null) {
|
||||
final Queue queue = queueBinding.getQueue();
|
||||
return queue;
|
||||
|
@ -49,7 +49,7 @@ public class FakePostOffice implements PostOffice {
|
||||
Integer maxConsumers,
|
||||
Boolean purgeOnNoConsumers,
|
||||
Boolean exclusive,
|
||||
String user) throws Exception {
|
||||
SimpleString user) throws Exception {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user