zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuhan Zhang <yzh...@onescreen.com>
Subject how to set zookeeper session time to forever?
Date Wed, 07 Dec 2011 21:13:05 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message