|
|
-
how to set zookeeper session time to forever?Yuhan Zhang 2011-12-07, 21:13
Hi all,
I'm using ZooKeeper as an event system that sends notification. This is done by creating a zooKeeper object, and calling getChildren(). It works fine. However, the session time concerns me, as it is an Integer, and a session time with Integer.MAX_VALUE in java will timeout in about 25 days. I have to keep a thread to refresh the connection to avoid it. Is there a particular reason that a long is not used for the sessionTime? or will it cause a problem if zooKeeper wait forever? Thank you. Yuhan |