Class SubmittedMode
java.lang.Object
ch.tocco.nice2.persist.security.impl.exec.SubmittedMode
- All Implemented Interfaces:
ModeWrapper
If a task is submitted it is executed on a separate thread. The default
behaviour is to execute it under the user of the calling thread.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPriority(Mode<?> mode) This method returns the priority for this wrapper.<A,T> PersistTask <A, T> wrap(PersistTask<A, T> task, Mode<?> mode) Returns a task conforming to the given mode.
-
Constructor Details
-
SubmittedMode
-
-
Method Details
-
wrap
Description copied from interface:ModeWrapperReturns a task conforming to the given mode. Gives the opportunity to wrap the given task (or create a complete new one) before executing it. The usual use case is this: If some condition holds inside the givenmode, a new task is returned wrapping the given task with additional behaviour. If the condition does not hold, thetaskargument is returned.- Specified by:
wrapin interfaceModeWrapper
-
getPriority
Description copied from interface:ModeWrapperThis method returns the priority for this wrapper. Please seePriorityclass documentation.- Specified by:
getPriorityin interfaceModeWrapper
-