Class CuratorFrameworkWithUnhandledErrorListener

java.lang.Object
org.apache.flink.runtime.highavailability.zookeeper.CuratorFrameworkWithUnhandledErrorListener
All Implemented Interfaces:
Closeable, AutoCloseable

public class CuratorFrameworkWithUnhandledErrorListener extends Object implements Closeable
A wrapper for curatorFramework and unHandledErrorListener which should be unregister from curatorFramework before closing it.
  • Constructor Details

    • CuratorFrameworkWithUnhandledErrorListener

      public CuratorFrameworkWithUnhandledErrorListener(org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework client, org.apache.flink.shaded.curator5.org.apache.curator.framework.api.UnhandledErrorListener listener)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • asCuratorFramework

      public org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework asCuratorFramework()