EventSource
using the builder's current properties.ConnectionErrorHandler
that should process connection errors.ConnectionErrorHandler.onConnectionError(Throwable)
indicating what
action the EventSource
should take after an error.EventSource.Builder.backoffResetThresholdMs(long)
: 60000 (60 seconds).EventSource.Builder.connectTimeoutMs(int)
: 10000 (10 seconds).EventSource.Builder.maxReconnectTimeMs(long)
: 30000 (30 seconds).EventSource.Builder.readTimeoutMs(int)
: 300000 (5 minutes).EventSource.Builder.reconnectTimeMs(long)
: 1000 (1 second).EventSource.Builder.writeTimeoutMs(int)
: 5000 (5 seconds).EventSource
.EventSource.setReconnectionTimeMs(long)
.EventHandler.onMessage(String, MessageEvent)
.SSLSocketFactory
that tries to ensure modern TLS versions are used.UnsuccessfulResponseException
if the server returns an unexpected HTTP
status).UnsuccessfulResponseException
if the server returns an unexpected HTTP status),
but only after the ConnectionErrorHandler
(if any) has processed it.Proxy
to be used to make the EventSource connection.EventSource.getState()
.