com.lmax.disruptor
Class IgnoreExceptionHandler

java.lang.Object
  extended by com.lmax.disruptor.IgnoreExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public final class IgnoreExceptionHandler
extends java.lang.Object
implements ExceptionHandler

Convenience implementation of an exception handler that using standard JDK logging to log the exception as Level.INFO


Constructor Summary
IgnoreExceptionHandler()
           
IgnoreExceptionHandler(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

IgnoreExceptionHandler

public IgnoreExceptionHandler()

IgnoreExceptionHandler

public IgnoreExceptionHandler(java.util.logging.Logger logger)
Method Detail

handleEventException

public void handleEventException(java.lang.Throwable ex,
                                 long sequence,
                                 java.lang.Object event)
Description copied from interface: ExceptionHandler
Strategy for handling uncaught exceptions when processing an event. If the strategy wishes to suspend further processing by the BatchEventProcessor then is should throw a RuntimeException.

Specified by:
handleEventException in interface ExceptionHandler
Parameters:
ex - the exception that propagated from the EventHandler.
sequence - of the event which cause the exception.
event - being processed when the exception occurred.

handleOnStartException

public void handleOnStartException(java.lang.Throwable ex)
Description copied from interface: ExceptionHandler
Callback to notify of an exception during LifecycleAware.onStart()

Specified by:
handleOnStartException in interface ExceptionHandler
Parameters:
ex - throw during the starting process.

handleOnShutdownException

public void handleOnShutdownException(java.lang.Throwable ex)
Description copied from interface: ExceptionHandler
Callback to notify of an exception during LifecycleAware.onShutdown()

Specified by:
handleOnShutdownException in interface ExceptionHandler
Parameters:
ex - throw during the shutdown process.


Copyright © 2011 LMAX Ltd. All Rights Reserved.