Skip navigation links
B C D E G H L M N O P R S T U V W 

B

backoffResetThresholdMs(long) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the minimum amount of time that a connection must stay open before the EventSource resets its backoff delay.
body(RequestBody) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the request body to be used for this EventSource client to use for requests to establish the EventSource.
build() - Method in class com.launchdarkly.eventsource.EventSource.Builder
Constructs an EventSource using the builder's current properties.
Builder(EventHandler, URI) - Constructor for class com.launchdarkly.eventsource.EventSource.Builder
Creates a new builder.
Builder(EventHandler, HttpUrl) - Constructor for class com.launchdarkly.eventsource.EventSource.Builder
Creates a new builder.

C

client(OkHttpClient) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set a custom HTTP client that will be used to make the EventSource connection.
close() - Method in class com.launchdarkly.eventsource.EventSource
 
com.launchdarkly.eventsource - package com.launchdarkly.eventsource
 
ConnectionErrorHandler - Interface in com.launchdarkly.eventsource
Interface for an object that will be notified when EventSource encounters a connection failure.
connectionErrorHandler(ConnectionErrorHandler) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the ConnectionErrorHandler that should process connection errors.
ConnectionErrorHandler.Action - Enum in com.launchdarkly.eventsource
Return values of ConnectionErrorHandler.onConnectionError(Throwable) indicating what action the EventSource should take after an error.
connectTimeoutMs(int) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the connection timeout.
createSocket(Socket, String, int, boolean) - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
createSocket(String, int) - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
createSocket(String, int, InetAddress, int) - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
createSocket(InetAddress, int) - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
createSocket(InetAddress, int, InetAddress, int) - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 

D

DEFAULT - Static variable in interface com.launchdarkly.eventsource.ConnectionErrorHandler
Default handler that does nothing.
DEFAULT_BACKOFF_RESET_THRESHOLD_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.backoffResetThresholdMs(long): 60000 (60 seconds).
DEFAULT_CONNECT_TIMEOUT_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.connectTimeoutMs(int): 10000 (10 seconds).
DEFAULT_MAX_RECONNECT_TIME_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.maxReconnectTimeMs(long): 30000 (30 seconds).
DEFAULT_READ_TIMEOUT_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.readTimeoutMs(int): 300000 (5 minutes).
DEFAULT_RECONNECT_TIME_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.reconnectTimeMs(long): 1000 (1 second).
DEFAULT_WRITE_TIMEOUT_MS - Static variable in class com.launchdarkly.eventsource.EventSource
The default value for EventSource.Builder.writeTimeoutMs(int): 5000 (5 seconds).

E

equals(Object) - Method in class com.launchdarkly.eventsource.MessageEvent
 
EventHandler - Interface in com.launchdarkly.eventsource
Interface for an object that will receive SSE events.
EventParser - Class in com.launchdarkly.eventsource
Adapted from https://github.com/aslakhellesoy/eventsource-java/blob/master/src/main/java/com/github/eventsource/client/impl/EventStreamParser.java
EventSource - Class in com.launchdarkly.eventsource
Client for Server-Sent Events aka EventSource
EventSource.Builder - Class in com.launchdarkly.eventsource
Builder for EventSource.
EventSource.RequestTransformer - Interface in com.launchdarkly.eventsource
Interface for an object that can modify the network request that the EventSource will make.

G

getClientBuilder() - Method in class com.launchdarkly.eventsource.EventSource.Builder
 
getCode() - Method in exception com.launchdarkly.eventsource.UnsuccessfulResponseException
Returns the HTTP status code.
getData() - Method in class com.launchdarkly.eventsource.MessageEvent
Returns the event data, if any.
getDefaultCipherSuites() - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
getHttpUrl() - Method in class com.launchdarkly.eventsource.EventSource
Returns the current stream endpoint as an OkHttp HttpUrl.
getLastEventId() - Method in class com.launchdarkly.eventsource.MessageEvent
Returns the event ID, if any.
getMaxReconnectTimeMs() - Method in class com.launchdarkly.eventsource.EventSource
Returns the current maximum reconnect delay as set by EventSource.setReconnectionTimeMs(long).
getOrigin() - Method in class com.launchdarkly.eventsource.MessageEvent
Returns the endpoint of the stream that generated the event.
getState() - Method in class com.launchdarkly.eventsource.EventSource
Returns an enum indicating the current status of the connection.
getSupportedCipherSuites() - Method in class com.launchdarkly.eventsource.ModernTLSSocketFactory
 
getUri() - Method in class com.launchdarkly.eventsource.EventSource
Returns the current stream endpoint as a java.net.URI.

H

hashCode() - Method in class com.launchdarkly.eventsource.MessageEvent
 
headers(Headers) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set the headers to be sent when establishing the EventSource connection.

L

line(String) - Method in class com.launchdarkly.eventsource.EventParser
Accepts a single line of input and updates the parser state.

M

maxReconnectTimeMs(long) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the maximum delay between connection attempts.
MessageEvent - Class in com.launchdarkly.eventsource
Event information that is passed to EventHandler.onMessage(String, MessageEvent).
MessageEvent(String, String, URI) - Constructor for class com.launchdarkly.eventsource.MessageEvent
Constructs a new instance.
MessageEvent(String) - Constructor for class com.launchdarkly.eventsource.MessageEvent
Constructs a new instance.
method(String) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set the HTTP method used for this EventSource client to use for requests to establish the EventSource.
ModernTLSSocketFactory - Class in com.launchdarkly.eventsource
An SSLSocketFactory that tries to ensure modern TLS versions are used.

N

name(String) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set the name for this EventSource client to be used when naming the logger and threadpools.

O

onClosed() - Method in interface com.launchdarkly.eventsource.EventHandler
EventSource calls this method when the stream connection has been closed.
onComment(String) - Method in interface com.launchdarkly.eventsource.EventHandler
EventSource calls this method when it has received a comment line from the stream (any line starting with a colon).
onConnectionError(Throwable) - Method in interface com.launchdarkly.eventsource.ConnectionErrorHandler
This method is called synchronously for all exceptions that occur on the socket connection (including an UnsuccessfulResponseException if the server returns an unexpected HTTP status).
onError(Throwable) - Method in interface com.launchdarkly.eventsource.EventHandler
This method will be called for all exceptions that occur on the socket connection (including an UnsuccessfulResponseException if the server returns an unexpected HTTP status), but only after the ConnectionErrorHandler (if any) has processed it.
onMessage(String, MessageEvent) - Method in interface com.launchdarkly.eventsource.EventHandler
EventSource calls this method when it has received a new event from the stream.
onOpen() - Method in interface com.launchdarkly.eventsource.EventHandler
EventSource calls this method when the stream connection has been opened.

P

proxy(String, int) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set the HTTP proxy address to be used to make the EventSource connection
proxy(Proxy) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Set the Proxy to be used to make the EventSource connection.
proxyAuthenticator(Authenticator) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the Proxy Authentication mechanism if needed.

R

readTimeoutMs(int) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the read timeout in milliseconds.
ReadyState - Enum in com.launchdarkly.eventsource
Enum values that can be returned by EventSource.getState().
reconnectTimeMs(long) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the minimum delay between connection attempts.
requestTransformer(EventSource.RequestTransformer) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Specifies an object that will be used to customize outgoing requests.

S

setHttpUrl(HttpUrl) - Method in class com.launchdarkly.eventsource.EventSource
Changes the stream endpoint.
setLastEventId(String) - Method in class com.launchdarkly.eventsource.EventSource
Sets the ID value of the last event received.
setMaxReconnectTimeMs(long) - Method in class com.launchdarkly.eventsource.EventSource
Sets the maximum delay between connection attempts.
setReconnectionTimeMs(long) - Method in class com.launchdarkly.eventsource.EventSource
Sets the minimum delay between connection attempts.
setUri(URI) - Method in class com.launchdarkly.eventsource.EventSource
Changes the stream endpoint.
start() - Method in class com.launchdarkly.eventsource.EventSource
Attempts to connect to the remote event source if not already connected.

T

transformRequest(Request) - Method in interface com.launchdarkly.eventsource.EventSource.RequestTransformer
Returns a request that is either the same as the input request or based on it.

U

UnsuccessfulResponseException - Exception in com.launchdarkly.eventsource
Exception class that means the remote server returned an HTTP error.
UnsuccessfulResponseException(int) - Constructor for exception com.launchdarkly.eventsource.UnsuccessfulResponseException
Constructs an exception instance.

V

valueOf(String) - Static method in enum com.launchdarkly.eventsource.ConnectionErrorHandler.Action
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.launchdarkly.eventsource.ReadyState
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.launchdarkly.eventsource.ConnectionErrorHandler.Action
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.launchdarkly.eventsource.ReadyState
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeTimeoutMs(int) - Method in class com.launchdarkly.eventsource.EventSource.Builder
Sets the write timeout in milliseconds.
B C D E G H L M N O P R S T U V W 
Skip navigation links