[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-4968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015282#comment-18015282
 ] 

Christopher Tubbs commented on ZOOKEEPER-4968:
----------------------------------------------

For my application, I created a wrapper ZooSession object that wraps ZooKeeper 
and handles replacing the ZooKeeper object internally when it experiences a 
session expiration, since the ZooKeeper client object is typically useless 
after a session expiration. However, I only implemented a subset of ZooKeeper's 
methods, to proxy, because I only used a few. It would be great to have an 
interface for ZooKeeper that defined the client API. Then I could have my own 
wrapper object implement that interface, so my automatic-reconnecting client 
could be used anywhere the usual ZooKeeper client object is used, as a drop-in 
replacement.

> Introduce interface to cover ZooKeeper client operations
> --------------------------------------------------------
>
>                 Key: ZOOKEEPER-4968
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4968
>             Project: ZooKeeper
>          Issue Type: New Feature
>          Components: java client
>            Reporter: Kezhu Wang
>            Priority: Major
>             Fix For: 4.0.0
>
>
> I think it is feasible even in 3.x with helper from {{ZooKeeperBuilder}}. But 
> that prabably be abi incompatible.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to