CqState (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.query, interface: CqState

Package org.apache.geode.cache.query

# Interface CqState

public interface CqState
This interface gives information on the state of a CqQuery. It is provided by the getState method of the CqQuery instance.

Since:
  GemFire 5.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isClosed()`
  Returns true if the CQ is in Closed state.
  `boolean`
  `isClosing()`
  Returns true if the CQ is in Closing state.
  `boolean`
  `isRunning()`
  Returns true if the CQ is in Running state.
  `boolean`
  `isStopped()`
  Returns true if the CQ is in Stopped state.
  `String`
  `toString()`
  Returns the state in string form.

- ## Method Details

  - ### toString

    String toString()
    Returns the state in string form.
    Overrides:
      `toString` in class `Object`

  - ### isRunning

    boolean isRunning()
    Returns true if the CQ is in Running state.
    Returns:
      whether the CQ is in Running state.

  - ### isStopped

    boolean isStopped()
    Returns true if the CQ is in Stopped state.
    Returns:
      whether the CQ is in Stopped state.

  - ### isClosed

    boolean isClosed()
    Returns true if the CQ is in Closed state.
    Returns:
      whether the CQ is in Closed state.

  - ### isClosing

    boolean isClosing()
    Returns true if the CQ is in Closing state.
    Returns:
      whether the CQ is in Closing state.