Class Keys
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.Keys
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Mode.Key<Callable<Keys.Cancel>> Provide a cancellation function that is used in tasks that are combined with loops.static final Mode.Key<CollectMode> When executing looping tasks (such as `expandTask()` for example), specify whether the results should be collected.Create a new context for the task to be processed.Set max retries whenOutdatedExceptionoccurs.Limit rate for looping tasks.In some (rare) situations theExecutionContextis not setup. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Exception>
Mode.Key<ExceptionMapper<E>> exceptionMapper(Class<E> type)
-
Field Details
-
SETUP_EXECUTION_CONTEXT
-
L10N_CONTEXT
-
L10N_LOCALE
-
COLLECTMODE
When executing looping tasks (such as `expandTask()` for example), specify whether the results should be collected. -
RATE_LIMITATION
-
CANCELLATION
Provide a cancellation function that is used in tasks that are combined with loops. The loop either throws an exception (Keys.Cancel.ERROR) or simply terminates (Keys.Cancel.STOP) depending on the result of the cancellation function. In case ofKeys.Cancel.ERRORanCancellationExceptionis thrown. The callable is expected to return a value and not throw. If it throws regardless, the exception is propagated. -
OUTDATED_MAX_RETRIES
Set max retries whenOutdatedExceptionoccurs. Default is 0 retries. -
NEW_CONTEXT
-
-
Method Details
-
exceptionMapper
-