Class ZookeeperIdSegmentDistributor

java.lang.Object
me.ahoo.cosid.segment.AbstractIdSegmentDistributor
me.ahoo.cosid.zookeeper.ZookeeperIdSegmentDistributor
All Implemented Interfaces:
Grouped, IdSegmentDistributor

public class ZookeeperIdSegmentDistributor extends AbstractIdSegmentDistributor
Zookeeper IdSegment Distributor.
  • Constructor Details

    • ZookeeperIdSegmentDistributor

      public ZookeeperIdSegmentDistributor(String namespace, String name, long offset, long step, org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.RetryPolicy retryPolicy)
    • ZookeeperIdSegmentDistributor

      public ZookeeperIdSegmentDistributor(String namespace, String name, long offset, long step, org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.RetryPolicy retryPolicy, CallTimeout callTimeout)
      Create a ZooKeeper segment distributor whose AbstractIdSegmentDistributor.nextMaxId(long) gives up after callTimeout. ensureOffset() at startup is not bounded.
  • Method Details