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 Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFrameworkasCuratorFramework()voidclose()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
asCuratorFramework
public org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework asCuratorFramework()
-
-