Package com.atlassian.bamboo.util
Class BambooProfilingUtils
java.lang.Object
com.atlassian.bamboo.util.BambooProfilingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static boolean
static <T> T
withUtilTimerStack
(@NotNull String message, BambooCallables.NotThrowing<T> callable) Deprecated.withUtilTimerStack
(@NotNull String message, BambooCallables.ThrowingX<T, E1, E2, E3> callable) Deprecated.since 6.10 useTimers
directlywithUtilTimerStack
(@NotNull String message, BambooRunnables.ThrowingX<E1, E2, E3> runnable) Deprecated.since 6.10 useTimers
directlystatic void
withUtilTimerStack
(@NotNull String message, Runnable runnable) Deprecated.since 6.10 useTimers
directlystatic <T> T
withUtilTimerStack
(@NotNull String message, Callable<T> callable) Deprecated.since 6.10 useTimers
directlystatic <T> T
withUtilTimerStack
(@NotNull String message, Supplier<T> supplier) Deprecated.since 6.10 useTimers
directly
-
Method Details
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Callable<T> callable) throws Exception Deprecated.since 6.10 useTimers
directlyWrap a piece of logic with calls toTimers.start(String)
.- Type Parameters:
T
- Type of value returned by callable- Parameters:
message
- Message to be put to UtilTimerStackcallable
- Code to be executed- Returns:
- Value returned by callable
- Throws:
Exception
-
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, BambooCallables.NotThrowing<T> callable) Deprecated.since 6.10 useTimers
directly -
withUtilTimerStack
@Deprecated public static <T,E1 extends Throwable, T withUtilTimerStackE2 extends Throwable, E3 extends Throwable> (@NotNull @NotNull String message, @NotNull BambooCallables.ThrowingX<T, E1, throws E1, E2, E3E2, E3> callable) Deprecated.since 6.10 useTimers
directly -
withUtilTimerStack
@Deprecated public static <T> T withUtilTimerStack(@NotNull @NotNull String message, Supplier<T> supplier) Deprecated.since 6.10 useTimers
directly -
withUtilTimerStack
@Deprecated public static <E1 extends Throwable,E2 extends Throwable, void withUtilTimerStackE3 extends Throwable> (@NotNull @NotNull String message, @NotNull BambooRunnables.ThrowingX<E1, E2, throws E1, E2, E3E3> runnable) Deprecated.since 6.10 useTimers
directly -
withUtilTimerStack
@Deprecated public static void withUtilTimerStack(@NotNull @NotNull String message, Runnable runnable) Deprecated.since 6.10 useTimers
directlyWrap a piece of logic with calls toTimers.start(String)
.- Parameters:
message
- Message to be put to UtilTimerStackrunnable
- Code to be executed
-
isUtilTimerStackActive
public static boolean isUtilTimerStackActive() -
getTimes
-
Timers
directly