Interface ConnectionErrorHandler


public interface ConnectionErrorHandler
Interface for an object that will be notified when BackgroundEventSource encounters a network error or receives an error response.

This is different from BackgroundEventHandler.onError(Throwable) in two ways:

  1. It has the ability to tell BackgroundEventSource to shut down instead of reconnecting.
  2. If the server simply ends the stream, the ConnectionErrorHandler is called with an EOFException; onError is not called in this case.