Interface MethodLogger.Entry

  • Enclosing interface:
    MethodLogger

    public static interface MethodLogger.Entry
    A method logger entry.
    • Method Detail

      • hasChildEntries

        boolean hasChildEntries()
        Returns:
        true if this log entry contains child log entries
      • method

        String method()
        Returns:
        the name of the method logged by this entry
      • isComplete

        boolean isComplete()
        Returns:
        true if the exit time has been set for this entry
      • accessTime

        long accessTime()
        Returns:
        the method access time
      • exitTime

        long exitTime()
        Returns:
        the exit time
      • accessMessage

        String accessMessage()
        Returns:
        the access message
      • duration

        long duration()
        Returns the duration of the method call this entry represents in nanoseconds, this value is 0 or undefined until the exit time has been set. This can be checked via isComplete().
        Returns:
        the duration of the method call this entry represents
      • append

        void append​(StringBuilder builder)
        Appends this logger entry along with any child-entries to the given StringBuilder.
        Parameters:
        builder - the StringBuilder to append to.
      • toString

        String toString​(int indentation)
        Returns a string representation of this log entry.
        Parameters:
        indentation - the number of tab indents to prefix the string with
        Returns:
        a string representation of this log entry