Interface ProcessContextRegistry

  • All Known Implementing Classes:
    DefaultProcessContextRegistry

    public interface ProcessContextRegistry
    Service to register currently running process contexts to. This registry is used by external process executors to retrieve callback handles.
    • Method Detail

      • register

        int register​(ProcessContext context)
        Registers the given ProcessContext, creates a new internal id for it and returns it.
        Parameters:
        context - the context to register
        Returns:
        a new locally unique id for the registered ProcessContext
      • unregister

        void unregister​(int pid)
        Unregisters (removes) the ProcessContext identified by the given pid. If no ProcessContext is registered for the specified id, calling this method has no effect; no exception is thrown.
        Parameters:
        pid - the locally unique id of the registered ProcessContext.
      • retrieve

        ProcessContext retrieve​(int pid)
        Retrieves the ProcessContext uniquely identified by the passed pid.
        Parameters:
        pid - the locally unique id of the registered ProcessContext.
        Returns:
        the ProcessContext registered for the specified pid or null if no such context is known.