Interface Execution


  • @Role
    public interface Execution
    Allows setting/retrieving the ExecutionContext.
    Since:
    1.5M2
    Version:
    $Id: 52fc88a5fd3ab7fff5d4801c076c62f6f45ee85f $
    • Method Detail

      • getContext

        ExecutionContext getContext()
        Returns:
        the current context of the current thread
      • setContext

        void setContext​(ExecutionContext context)
        Parameters:
        context - the current context of the current thread
      • pushContext

        void pushContext​(ExecutionContext context)
        Push a the passed context and make it inherit the existing one.
        Parameters:
        context - create a new context level for the current thread and set the provided context
        See Also:
        popContext()
      • pushContext

        default void pushContext​(ExecutionContext context,
                                 boolean inherit)
        Push a the passed context.
        Parameters:
        context - create a new context level for the current thread and set the provided context
        inherit - true if the passed context should inherit the existing one
        Since:
        11.9RC1
      • popContext

        void popContext()
        Remove a context level in the current thread.
        Throws:
        EmptyStackException - if this stack is empty.
      • removeContext

        void removeContext()
        Remove all context levels for the current thread.