Interface ContextHandler<C>

  • Type Parameters:
    C - context type

    public interface ContextHandler<C>
    Facility for creating and disposing of contexts on which ContextExecutableInputs operate.

    If used in a multi-threaded environment (e.g., SUL.fork()), an implementation of this interface must be thread-safe, i.e., both the createContext() and disposeContext(Object) methods must be reentrant. Furthermore, it must not make any assumptions as to the particular sequence in which these methods are called.

    • Method Detail

      • createContext

        C createContext()
      • disposeContext

        void disposeContext​(C context)