Class RESTEasyTracingInfo

    • Constructor Detail

      • RESTEasyTracingInfo

        public RESTEasyTracingInfo()
    • Method Detail

      • 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