org.apache.activemq.command.Message.toString()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.9k)|赞(0)|评价(0)|浏览(214)

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

Message.toString介绍

暂无

代码示例

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

@Override
public String toString() {
  return toString(null);
}

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

@Override
public boolean sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference,
                   Subscription subscription, Throwable poisonCause) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Sending to DLQ: {}", msg);
  }
  return super.sendToDeadLetterQueue(context, messageReference, subscription, poisonCause);
}

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

@Override
public void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message discarded: {}", msg);
  }
  super.messageDiscarded(context, sub, messageReference);
}

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

@Override
public void messageExpired(ConnectionContext context, MessageReference message, Subscription subscription) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = message.getMessage().toString();
    LOG.info("Message has expired: {}", msg);
  }
  super.messageExpired(context, message, subscription);
}

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

@Override
public void messageDelivered(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message delivered: {}", msg);
  }
  super.messageDelivered(context, messageReference);
}

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

@Override
public void messageConsumed(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message consumed: {}", msg);
  }
  super.messageConsumed(context, messageReference);
}

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

@Override
public void messageExpired(ConnectionContext context, MessageReference message, Subscription subscription) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = message.getMessage().toString();
    LOG.info("Message has expired: {}", msg);
  }
  super.messageExpired(context, message, subscription);
}

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

@Override
public boolean sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference,
                   Subscription subscription, Throwable poisonCause) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Sending to DLQ: {}", msg);
  }
  return super.sendToDeadLetterQueue(context, messageReference, subscription, poisonCause);
}

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

@Override
public void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message discarded: {}", msg);
  }
  super.messageDiscarded(context, sub, messageReference);
}

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

@Override
public void messageExpired(ConnectionContext context, MessageReference message, Subscription subscription) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = message.getMessage().toString();
    LOG.info("Message has expired: {}", msg);
  }
  super.messageExpired(context, message, subscription);
}

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

@Override
public boolean sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference,
                   Subscription subscription, Throwable poisonCause) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Sending to DLQ: {}", msg);
  }
  return super.sendToDeadLetterQueue(context, messageReference, subscription, poisonCause);
}

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

@Override
public void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message discarded: {}", msg);
  }
  super.messageDiscarded(context, sub, messageReference);
}

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

@Override
public void messageExpired(ConnectionContext context, MessageReference message, Subscription subscription) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = message.getMessage().toString();
    LOG.info("Message has expired: {}", msg);
  }
  super.messageExpired(context, message, subscription);
}

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

@Override
public boolean sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference,
                   Subscription subscription, Throwable poisonCause) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Sending to DLQ: {}", msg);
  }
  return super.sendToDeadLetterQueue(context, messageReference, subscription, poisonCause);
}

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

@Override
public void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference) {
  if (isLogAll() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message discarded: {}", msg);
  }
  super.messageDiscarded(context, sub, messageReference);
}

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

@Override
public void messageDelivered(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message delivered: {}", msg);
  }
  super.messageDelivered(context, messageReference);
}

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

@Override
public void messageConsumed(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message consumed: {}", msg);
  }
  super.messageConsumed(context, messageReference);
}

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

@Override
public void messageDelivered(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message delivered: {}", msg);
  }
  super.messageDelivered(context, messageReference);
}

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

@Override
public void messageConsumed(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message consumed: {}", msg);
  }
  super.messageConsumed(context, messageReference);
}

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

@Override
public void messageDelivered(ConnectionContext context, MessageReference messageReference) {
  if (isLogAll() || isLogConsumerEvents() || isLogInternalEvents()) {
    String msg = "Unable to display message.";
    msg = messageReference.getMessage().toString();
    LOG.info("Message delivered: {}", msg);
  }
  super.messageDelivered(context, messageReference);
}

相关文章

Message类方法