public static class AsynchronousContext.OperationFactory extends Object
Callable
so it can be executed in asynchronous context.
This operation has to be called in a separate thread.Constructor and Description |
---|
OperationFactory(RepositoryManager repositoryManager,
Context originalContext,
javax.inject.Provider<SystemContext> systemContextProvider) |
Modifier and Type | Method and Description |
---|---|
<T> Callable<T> |
wrap(Callable<T> operation) |
Runnable |
wrap(Runnable operation) |
@Inject public OperationFactory(RepositoryManager repositoryManager, Context originalContext, javax.inject.Provider<SystemContext> systemContextProvider)
public <T> Callable<T> wrap(Callable<T> operation)
operation
- operation to be executed asynchronouslyIllegalStateException
- if MgnlContext
is already set for this thread.Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.