Enum Waiter.LogPoint

    • Method Detail

      • values

        public static Waiter.LogPoint[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Waiter.LogPoint c : Waiter.LogPoint.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Waiter.LogPoint valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • logStart

        public void logStart​(String reason,
                             long millis)
        Logs start of waiting. Its time and reason in case of START or BOTH
        Parameters:
        reason - reason of waiting
        millis - waiting timeout on condition
      • logStart

        public void logStart​(String reason,
                             long millis,
                             org.slf4j.event.Level level)
        Logs start of waiting using the selected logging {@param level}. Its time and reason in case of START or BOTH.
        Parameters:
        reason - reason of waiting
        millis - waiting timeout on condition
        level - logging severity of {@param reason} log
      • logEnd

        public void logEnd​(String reason,
                           long millis)
        Logs end of waiting using the selected logging {@param level}. Its time and reason in case of END or BOTH
        Parameters:
        reason - reason of waiting
        millis - waiting timeout on condition
      • logEnd

        public void logEnd​(String reason,
                           long millis,
                           org.slf4j.event.Level level)
        Logs end of waiting. Its time and reason in case of END or BOTH
        Parameters:
        reason - reason of waiting
        millis - waiting timeout on condition
        level - logging severity of {@param reason} log