Interface OnReconnect

All Superinterfaces:
org.apache.curator.framework.state.ConnectionStateListener

public interface OnReconnect extends org.apache.curator.framework.state.ConnectionStateListener
Implementations are expected to implement a correct hashCode and equals method needed to uniquely identify the listener as listeners are managed in a Set. In addition, your listener implementation should call org.apache.solr.cloud.ZkController#removeOnReconnectListener(OnReconnect) when it no longer needs to be notified of ZK reconnection events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default void
    stateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState)
     

    Methods inherited from interface org.apache.curator.framework.state.ConnectionStateListener

    doNotProxy
  • Method Details

    • onReconnect

      void onReconnect()
    • stateChanged

      default void stateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState)
      Specified by:
      stateChanged in interface org.apache.curator.framework.state.ConnectionStateListener