Interface ConnectionErrorHandler


  • public interface ConnectionErrorHandler
    Interface for an object that will be notified when EventSource encounters a socket connection error or receives an error response. This is different from EventHandler.onError(Throwable) in two ways:
    1. It has the ability to tell EventSource 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.