Class APISettings


  • @ThreadSafe
    public final class APISettings
    extends Object
    A central helper class that centrally configures all API callbacks.
    Author:
    Philip Helger
    • Field Detail

      • DEFAULT_LONG_RUNNING_EXECUTION_LIMIT_MS

        public static final long DEFAULT_LONG_RUNNING_EXECUTION_LIMIT_MS
        Default milliseconds until an implementation is considered long running.
        See Also:
        Constant Field Values
    • Method Detail

      • exceptionCallbacks

        @Nonnull
        @ReturnsMutableObject("design")
        public static com.helger.commons.callback.CallbackList<IAPIExceptionCallback> exceptionCallbacks()
      • beforeExecutionCallbacks

        @Nonnull
        @ReturnsMutableObject("design")
        public static com.helger.commons.callback.CallbackList<IAPIBeforeExecutionCallback> beforeExecutionCallbacks()
      • getLongRunningExecutionLimitTime

        @CheckForSigned
        public static long getLongRunningExecutionLimitTime()
      • setLongRunningExecutionLimitTime

        public static void setLongRunningExecutionLimitTime​(long nLongRunningExecutionLimitTime)
        Set the milliseconds after which an execution is considered long running.
        Parameters:
        nLongRunningExecutionLimitTime - The milliseconds to use. Value ≤ 0 are considered "no limit"