T - task can run a value, which can also be of type Void.@FunctionalInterface public interface ModelRegistrationTask<T>
ServerModel#run(ModelRegistrationTask) to ensure running it in
single threaded "configuration/registration" event loop.| Modifier and Type | Method and Description |
|---|---|
T |
run()
Run a task on behalf of
WebContainer implementations, where
we better ensure synchronous manipulation of internal Pax Web model and invocation of
ServerController |
T run() throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException, IllegalArgumentException, IllegalStateException
Run a task on behalf of WebContainer implementations, where
we better ensure synchronous manipulation of internal Pax Web model and invocation of
ServerController
When all such tasks are ensured to be run in single configuration thread, we can make the code much easier and avoid any locking/synchronization mechanism.
Task can throw any API exception and will be handled correctly even across thread boundaries.
javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceExceptionIllegalArgumentExceptionIllegalStateExceptionCopyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.