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

Package org.apache.geode.cache.query

# Interface CqStatusListener

All Superinterfaces:
  `CacheCallback`, `CqListener`, `Declarable`

public interface CqStatusListener extends CqListener
Extension of CqListener. Adds two new methods to CqListener, one that is called when the cq is connected and one that is called when the cq is disconnected

Since:
  GemFire 7.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onCqConnected()`
  Called when the cq establishes a connection with a server
  `void`
  `onCqDisconnected()`
  Called when the cq loses connection with all servers

  ### Methods inherited from interface org.apache.geode.cache.CacheCallback

  `close`

  ### Methods inherited from interface org.apache.geode.cache.query.CqListener

  `onError, onEvent`

  ### Methods inherited from interface org.apache.geode.cache.Declarable

  `init, initialize`

- ## Method Details

  - ### onCqDisconnected

    void onCqDisconnected()
    Called when the cq loses connection with all servers

  - ### onCqConnected

    void onCqConnected()
    Called when the cq establishes a connection with a server