Package org.apache.bookkeeper.client.AsyncCallback

Examples of org.apache.bookkeeper.client.AsyncCallback.CreateCallback


       
        bk.asyncCreateLedger(config.getEnsembleSize(),
                                        config.getQuorumSize(),
                                        BookKeeper.DigestType.CRC32,
                                        "flavio was here".getBytes(),
                                        new CreateCallback(){           
            @Override
            public void createComplete(int rc, LedgerHandle lh, Object ctx){
                if(rc == BKException.Code.OK){
                    try{
                        BookKeeperStateLogger.this.lh = lh;
View Full Code Here


            LOG.error("Exception while initializing bookkeeper", e);
            throw new LoggerException.BKOpFailedException();
        }

        bk.asyncCreateLedger(config.getEnsembleSize(), config.getQuorumSize(), BookKeeper.DigestType.CRC32,
                "flavio was here".getBytes(), new CreateCallback() {
                    @Override
                    public void createComplete(int rc, LedgerHandle lh, Object ctx) {
                        if (rc == BKException.Code.OK) {
                            try {
                                BookKeeperStateLogger.this.lh = lh;
View Full Code Here

TOP

Related Classes of org.apache.bookkeeper.client.AsyncCallback.CreateCallback

Copyright © 2018 www.massapicom. 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.