Class ConnectStrategy.Client

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ConnectStrategy

    public abstract static class ConnectStrategy.Client
    extends java.lang.Object
    implements java.io.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.