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

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

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

Queue.isDLQ介绍

暂无

代码示例

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

public int retryMessages(ConnectionContext context, int maximumMessages) throws Exception {
  if (!isDLQ()) {
    throw new Exception("Retry of message is only possible on Dead Letter Queues!");

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

try {
  messages.rollback(m.getMessageId());
  if (isDLQ()) {
    ActiveMQDestination originalDestination = m.getMessage().getOriginalDestination();
    if (originalDestination != null) {

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

public int retryMessages(ConnectionContext context, int maximumMessages) throws Exception {
  if (!isDLQ()) {
    throw new Exception("Retry of message is only possible on Dead Letter Queues!");

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

public int retryMessages(ConnectionContext context, int maximumMessages) throws Exception {
  if (!isDLQ()) {
    throw new Exception("Retry of message is only possible on Dead Letter Queues!");

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

public int retryMessages(ConnectionContext context, int maximumMessages) throws Exception {
  if (!isDLQ()) {
    throw new Exception("Retry of message is only possible on Dead Letter Queues!");

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

try {
  messages.rollback(m.getMessageId());
  if (isDLQ()) {
    DeadLetterStrategy strategy = getDeadLetterStrategy();
    strategy.rollback(m.getMessage());

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

try {
  messages.rollback(m.getMessageId());
  if (isDLQ()) {
    DeadLetterStrategy strategy = getDeadLetterStrategy();
    strategy.rollback(m.getMessage());

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

try {
  messages.rollback(m.getMessageId());
  if (isDLQ()) {
    DeadLetterStrategy strategy = getDeadLetterStrategy();
    strategy.rollback(m.getMessage());

相关文章

Queue类方法