com.lmax.disruptor
Interface ExceptionHandler

All Known Implementing Classes:
FatalExceptionHandler, IgnoreExceptionHandler

public interface ExceptionHandler

Callback handler for uncaught exceptions in the AbstractEntry processing cycle of the BatchConsumer


Method Summary
 void handle(java.lang.Exception ex, AbstractEntry currentEntry)
          Strategy for handling uncaught exceptions when processing an AbstractEntry.
 

Method Detail

handle

void handle(java.lang.Exception ex,
            AbstractEntry currentEntry)
Strategy for handling uncaught exceptions when processing an AbstractEntry. If the strategy wishes to suspend further processing by the BatchConsumer then is should throw a RuntimeException.

Parameters:
ex - the exception that propagated from the BatchHandler
currentEntry - being processed when the exception occurred.


Copyright © 2011 LMAX Ltd. All Rights Reserved.