Class ZooKeeperConnectionPool


  • public class ZooKeeperConnectionPool
    extends java.lang.Object
    Pool of ZooKeeper connections. ZooKeeper connections are not trivial to set up and each one carries a cost. Plus, if we want to shut them all down on exit we need them all in one place.
    • Field Detail

      • connectString

        protected final java.lang.String connectString
      • sessionTimeout

        protected final int sessionTimeout
    • Constructor Detail

      • ZooKeeperConnectionPool

        public ZooKeeperConnectionPool​(java.lang.String connectString,
                                       int sessionTimeout)