@Retention(value=RUNTIME) @Target(value=METHOD) public @interface OnError
Scheduled to additionally
specify an exception handler. Please note that the exception handler instance is
obtained from the injector in early stages, before initially scheduling the
method. If you intend to inject ScheduledScope or ExecutionScope
objects into the exception handler, you need to bind them as
scoped proxy or
inject a ProviderScheduled,
ExceptionHandler| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends ExceptionHandler> |
value
The type of the
ExceptionHandler to use for the scheduled method. |
public abstract Class<? extends ExceptionHandler> value
ExceptionHandler to use for the scheduled method.Copyright © 2014–2018. All rights reserved.