|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lmax.disruptor.FatalExceptionHandler
public final class FatalExceptionHandler
Convenience implementation of an exception handler that using standard JDK logging to log
the exception as Level.SEVERE and re-throw it wrapped in a RuntimeException
| Constructor Summary | |
|---|---|
FatalExceptionHandler()
|
|
FatalExceptionHandler(java.util.logging.Logger logger)
|
|
| Method Summary | |
|---|---|
void |
handleEventException(java.lang.Throwable ex,
long sequence,
java.lang.Object event)
Strategy for handling uncaught exceptions when processing an event. |
void |
handleOnShutdownException(java.lang.Throwable ex)
Callback to notify of an exception during LifecycleAware.onShutdown() |
void |
handleOnStartException(java.lang.Throwable ex)
Callback to notify of an exception during LifecycleAware.onStart() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FatalExceptionHandler()
public FatalExceptionHandler(java.util.logging.Logger logger)
| Method Detail |
|---|
public void handleEventException(java.lang.Throwable ex,
long sequence,
java.lang.Object event)
ExceptionHandlerBatchEventProcessor
then is should throw a RuntimeException.
handleEventException in interface ExceptionHandlerex - the exception that propagated from the EventHandler.sequence - of the event which cause the exception.event - being processed when the exception occurred.public void handleOnStartException(java.lang.Throwable ex)
ExceptionHandlerLifecycleAware.onStart()
handleOnStartException in interface ExceptionHandlerex - throw during the starting process.public void handleOnShutdownException(java.lang.Throwable ex)
ExceptionHandlerLifecycleAware.onShutdown()
handleOnShutdownException in interface ExceptionHandlerex - throw during the shutdown process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||