Class RESTEasyTracingInfo

java.lang.Object
org.jboss.resteasy.tracing.api.RESTEasyTracingInfo
Direct Known Subclasses:
TextBasedRESTEasyTracingInfo

public abstract class RESTEasyTracingInfo extends Object
  • Field Details

  • Constructor Details

    • RESTEasyTracingInfo

      public RESTEasyTracingInfo()
  • Method Details

    • get

      public static RESTEasyTracingInfo get(String format)
    • supports

      public abstract boolean supports(RESTEasyTracingInfoFormat format)
    • getMessages

      public abstract String[] getMessages()
    • addMessage

      public final void addMessage(RESTEasyTracingMessage message)
      Add a message to the queue to be processed.
      Parameters:
      message - the message to add
    • formatDuration

      public abstract String formatDuration(long duration)
    • isEmpty

      protected final boolean isEmpty()
      Checks if there are currently messages in the queue.
      Returns:
      true if there are messages in the queue, otherwise false if the queue is empty
    • size

      protected final int size()
      Returns the number of the messages in the queue.
      Returns:
      the number of messages in the queue
    • pop

      protected final List<RESTEasyTracingMessage> pop()
      Returns an immutable copy of the current messages in the queue and clears the messages from the queue.
      Returns:
      an immutable copy of the messages