|
||||||||||
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 |
handle(java.lang.Exception ex,
AbstractEntry currentEntry)
Strategy for handling uncaught exceptions when processing an AbstractEntry . |
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 handle(java.lang.Exception ex, AbstractEntry currentEntry)
ExceptionHandler
AbstractEntry
.
If the strategy wishes to suspend further processing by the BatchConsumer
then is should throw a RuntimeException
.
handle
in interface ExceptionHandler
ex
- the exception that propagated from the BatchHandler
currentEntry
- being processed when the exception occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |