com.lmax.api
Interface StreamFailureListener


public interface StreamFailureListener

Listener interface for failures on the event stream. Implementations can use this listener interface to make the appropriate decision when there is some sort of failure on the event stream, e.g. connection dropped.


Method Summary
 void notifyStreamFailure(java.lang.Exception exception)
          Called each time there is an exception on the event stream.
 

Method Detail

notifyStreamFailure

void notifyStreamFailure(java.lang.Exception exception)
Called each time there is an exception on the event stream. The implementer can make a decision as to the appropriate action within this method. E.g. session.stop() could be called if the user wanted the system to stop processing events. By default the stream handler retry the connection immediately.

Parameters:
exception - The exception while processing events