Class ConnectStrategy.Client

java.lang.Object
com.launchdarkly.eventsource.ConnectStrategy.Client
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
ConnectStrategy

public abstract static class ConnectStrategy.Client extends Object implements Closeable
An object provided by ConnectStrategy that is retained by a single EventSource instance to perform all connection attempts by that instance.

For the default HTTP implementation, this represents a configured HTTP client.

The Closeable.close() method should be implemented to do any necessary cleanup when an EventSource instance is being permanently disposed of.