Codota Logo
RepublishMessageRecoverer.getStackTraceAsString
Code IndexAdd Codota to your IDE (free)

How to use
getStackTraceAsString
method
in
org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer

Best Java code snippets using org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer.getStackTraceAsString (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-amqp

private String processStackTrace(Throwable cause) {
  String stackTraceAsString = getStackTraceAsString(cause);
  if (this.maxStackTraceLength < 0) {
    int maxStackTraceLen = RabbitUtils
        .getMaxFrame(((RabbitTemplate) this.errorTemplate).getConnectionFactory());
    if (maxStackTraceLen > 0) {
      maxStackTraceLen -= this.frameMaxHeadroom;
      this.maxStackTraceLength = maxStackTraceLen;
    }
  }
  if (this.maxStackTraceLength > 0 && stackTraceAsString.length() > this.maxStackTraceLength) {
    stackTraceAsString = stackTraceAsString.substring(0, this.maxStackTraceLength);
    this.logger.warn("Stack trace in republished message header truncated due to frame_max limitations; "
        + "consider increasing frame_max on the broker or reduce the stack trace depth", cause);
  }
  return stackTraceAsString;
}
origin: org.springframework.amqp/spring-rabbit

private String processStackTrace(Throwable cause) {
  String stackTraceAsString = getStackTraceAsString(cause);
  if (this.maxStackTraceLength < 0) {
    int maxStackTraceLen = RabbitUtils
        .getMaxFrame(((RabbitTemplate) this.errorTemplate).getConnectionFactory());
    if (maxStackTraceLen > 0) {
      maxStackTraceLen -= this.frameMaxHeadroom;
      this.maxStackTraceLength = maxStackTraceLen;
    }
  }
  if (this.maxStackTraceLength > 0 && stackTraceAsString.length() > this.maxStackTraceLength) {
    stackTraceAsString = stackTraceAsString.substring(0, this.maxStackTraceLength);
    this.logger.warn("Stack trace in republished message header truncated due to frame_max limitations; "
        + "consider increasing frame_max on the broker or reduce the stack trace depth", cause);
  }
  return stackTraceAsString;
}
org.springframework.amqp.rabbit.retryRepublishMessageRecoverergetStackTraceAsString

Popular methods of RepublishMessageRecoverer

  • additionalHeaders
    Subclasses can override this method to add more headers to the republished message.
  • prefixedOriginalRoutingKey
  • processStackTrace
  • setErrorRoutingKeyPrefix
  • <init>
  • errorRoutingKeyPrefix
    Apply a prefix to the outbound routing key, which will be prefixed to the original message routing k
  • recover
  • setDeliveryMode
    Specify a MessageDeliveryMode to set into the message to republish if the message doesn't have it al

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • findViewById (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • IsNull (org.hamcrest.core)
    Is the value null?
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now