Class CuratorFrameworkWithUnhandledErrorListener
java.lang.Object
org.apache.flink.runtime.highavailability.zookeeper.CuratorFrameworkWithUnhandledErrorListener
- All Implemented Interfaces:
Closeable,AutoCloseable
A wrapper for curatorFramework and unHandledErrorListener which should be unregister from
curatorFramework before closing it.
-
Constructor Summary
ConstructorsConstructorDescriptionCuratorFrameworkWithUnhandledErrorListener(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
Modifier and TypeMethodDescriptionorg.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFrameworkvoidclose()
-
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
asCuratorFramework
public org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework asCuratorFramework()
-