|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.scheduling.support.DelegatingExceptionProofRunnable
public class DelegatingExceptionProofRunnable
Runnable wrapper that catches any exception or error thrown from its delegate Runnable. Used for continuing scheduled execution even after an exception thrown from a task's Runnable.
| Constructor Summary | |
|---|---|
DelegatingExceptionProofRunnable(Runnable delegate)
Create a new DelegatingExceptionProofRunnable that logs the exception but isn't propagating it (in order to continue scheduled execution). |
|
DelegatingExceptionProofRunnable(Runnable delegate,
boolean propagateException)
Create a new DelegatingExceptionProofRunnable. |
|
| Method Summary | |
|---|---|
Runnable |
getDelegate()
Return the wrapped Runnable implementation. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingExceptionProofRunnable(Runnable delegate)
delegate - the Runnable implementation to delegate to
public DelegatingExceptionProofRunnable(Runnable delegate,
boolean propagateException)
delegate - the Runnable implementation to delegate topropagateException - whether to propagate the exception after logging
(note: this will typically cancel scheduled execution of the runnable)| Method Detail |
|---|
public final Runnable getDelegate()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||