All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchdarkly.eventsource.ReadyState Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package com.launchdarkly.eventsource;

/**
 * Enum values that can be returned by {@link EventSource#getState()}.
 */
public enum ReadyState {
  /**
   * The EventSource's {@link EventSource#start()} method has not yet been called.
   */
  RAW,
  /**
   * The EventSource is attempting to make a connection.
   */
  CONNECTING,
  /**
   * The connection is active and the EventSource is listening for events.
   */
  OPEN,
  /**
   * The connection has been closed or has failed, and the EventSource will attempt to reconnect.
   */
  CLOSED,
  /**
   * The connection has been permanently closed and will not reconnect.
   */
  SHUTDOWN
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy