public class AsyncActionExecutor extends Object implements Destructible
AsyncActionExecutor.AsyncAction
by ExecutorService
.
The service is shut down on admincentral destruction.Modifier and Type | Class and Description |
---|---|
static class |
AsyncActionExecutor.AsyncAction |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Perform arbitrary clean-up logic upon component destruction
by the framework.
|
void |
execute(AsyncActionExecutor.AsyncAction action) |
public void execute(AsyncActionExecutor.AsyncAction action)
public void destroy()
Destructible
Note that Destructible.destroy()
method may be called outside of UI thread, e.g.
when the whole instance of admincentral gets disposed as result of heartbeat
checks. This means that neither Magnolia, nor Vaadin thread locals will be reliably
present upon that method invocation.
destroy
in interface Destructible
Copyright © 2020 Magnolia International Ltd.. All rights reserved.