Package com.englishtown.vertx.clients

Examples of com.englishtown.vertx.clients.EtCouchbaseClient.asyncGet()


            EtCouchbaseClient client = clientFactory.getClient(couchHosts, getMandatoryString("bucket", message), password);
            String fileId = getMandatoryString("files_id", message);
            Number n = getMandatoryNumber("n", message);
            String key = fileId + "!" + n;

            client.asyncGet(key, new FutureCallback<Object>() {
                @Override
                public void onSuccess(Object o) {
                    message.reply((byte[]) o);
                }
View Full Code Here


    private void doGetDocument(final Message<JsonObject> message) {
        try {
            EtCouchbaseClient client = clientFactory.getClient(couchHosts, getMandatoryString("bucket", message), password);
            String key = getMandatoryString("key", message);
            client.asyncGet(key, new FutureCallback<String>() {
                @Override
                public void onSuccess(String s) {
                    sendOK(message, (s == null ? new JsonObject() : new JsonObject(s)));
                }
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.