org.apache.activemq.broker.region.Queue.getMessageGroupOwners()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中org.apache.activemq.broker.region.Queue.getMessageGroupOwners方法的一些代码示例,展示了Queue.getMessageGroupOwners的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Queue.getMessageGroupOwners方法的具体详情如下:
包路径:org.apache.activemq.broker.region.Queue
类名称:Queue
方法名:getMessageGroupOwners

Queue.getMessageGroupOwners介绍

暂无

代码示例

代码示例来源:origin: apache/activemq

/**
 * @return a Map of groupNames and ConsumerIds
 */
@Override
public Map<String, String> getMessageGroups() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getGroups();
}

代码示例来源:origin: apache/activemq

/**
 * remove all the message groups - will rebalance all message groups across consumers
 */
@Override
public void removeAllMessageGroups() {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeAll();
}

代码示例来源:origin: apache/activemq

/**
 * @return the message group type implementation (simple,bucket,cached)
 */
@Override
public String getMessageGroupType() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getType();
}

代码示例来源:origin: apache/activemq

/**
 * remove a message group = has the effect of rebalancing group
 */
@Override
public void removeMessageGroup(@MBeanInfo("groupName") String groupName) {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeGroup(groupName);
}

代码示例来源:origin: apache/activemq

getMessageGroupOwners().removeConsumer(consumerId);

代码示例来源:origin: apache/activemq

if (groupId != null) {
  MessageGroupMap messageGroupOwners = getMessageGroupOwners();

代码示例来源:origin: org.apache.activemq/activemq-all

/**
 * @return the message group type implementation (simple,bucket,cached)
 */
@Override
public String getMessageGroupType() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getType();
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
 * remove all the message groups - will rebalance all message groups across consumers
 */
@Override
public void removeAllMessageGroups() {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeAll();
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

/**
 * @return a Map of groupNames and ConsumerIds
 */
@Override
public Map<String, String> getMessageGroups() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getGroups();
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

/**
 * @return the message group type implementation (simple,bucket,cached)
 */
@Override
public String getMessageGroupType() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getType();
}

代码示例来源:origin: org.apache.activemq/activemq-broker

/**
 * @return a Map of groupNames and ConsumerIds
 */
@Override
public Map<String, String> getMessageGroups() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getGroups();
}

代码示例来源:origin: org.apache.activemq/activemq-broker

/**
 * @return the message group type implementation (simple,bucket,cached)
 */
@Override
public String getMessageGroupType() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getType();
}

代码示例来源:origin: org.apache.activemq/activemq-broker

/**
 * remove all the message groups - will rebalance all message groups across consumers
 */
@Override
public void removeAllMessageGroups() {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeAll();
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
 * @return a Map of groupNames and ConsumerIds
 */
@Override
public Map<String, String> getMessageGroups() {
  Queue queue = (Queue) destination;
  return queue.getMessageGroupOwners().getGroups();
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

/**
 * remove all the message groups - will rebalance all message groups across consumers
 */
@Override
public void removeAllMessageGroups() {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeAll();
}

代码示例来源:origin: org.apache.activemq/activemq-all

/**
 * remove a message group = has the effect of rebalancing group
 */
@Override
public void removeMessageGroup(@MBeanInfo("groupName") String groupName) {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeGroup(groupName);
}

代码示例来源:origin: org.apache.activemq/activemq-broker

/**
 * remove a message group = has the effect of rebalancing group
 */
@Override
public void removeMessageGroup(@MBeanInfo("groupName") String groupName) {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeGroup(groupName);
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

/**
 * remove a message group = has the effect of rebalancing group
 */
@Override
public void removeMessageGroup(@MBeanInfo("groupName") String groupName) {
  Queue queue = (Queue) destination;
  queue.getMessageGroupOwners().removeGroup(groupName);
}

代码示例来源:origin: org.apache.activemq/activemq-all

if (groupId != null) {
  MessageGroupMap messageGroupOwners = getMessageGroupOwners();

代码示例来源:origin: org.apache.activemq/activemq-broker

if (groupId != null) {
  MessageGroupMap messageGroupOwners = getMessageGroupOwners();

相关文章

Queue类方法