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 Summary
Modifier and TypeMethodDescriptionintregister(ProcessContext context) Registers the givenProcessContext, creates a new internal id for it and returns it.retrieve(int pid) Retrieves theProcessContextuniquely identified by the passedpid.voidunregister(int pid) Unregisters (removes) theProcessContextidentified by the given pid.
-
Method Details
-
register
Registers the givenProcessContext, 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) theProcessContextidentified by the given pid. If noProcessContextis registered for the specified id, calling this method has no effect; no exception is thrown.- Parameters:
pid- the locally unique id of the registeredProcessContext.
-
retrieve
Retrieves theProcessContextuniquely identified by the passedpid.- Parameters:
pid- the locally unique id of the registeredProcessContext.- Returns:
- the
ProcessContextregistered for the specifiedpidornullif no such context is known.
-