Package org.apache.bookkeeper.client

Examples of org.apache.bookkeeper.client.SyncCounter.block()


    asyncOpenLedger(lId, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getrc() != BKException.Code.OK)
      throw BKException.create(counter.getrc());

    return counter.getLh();
  }
View Full Code Here


    asyncCreateLedger(ensSize, qSize, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getLh() == null) {
      LOG.error("ZooKeeper error: " + counter.getrc());
      throw BKException.create(Code.ZKException);
    }

View Full Code Here

    asyncCreateLedger(ensSize, qSize, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getLh() == null) {
      LOG.error("ZooKeeper error: " + counter.getrc());
      throw BKException.create(Code.ZKException);
    }

View Full Code Here

    asyncOpenLedger(lId, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getrc() != BKException.Code.OK)
      throw BKException.create(counter.getrc());

    return counter.getLh();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.