Examples of asyncGet()


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

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

    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

Examples of com.netflix.evcache.pool.EVCacheClient.asyncGet()

        }

        final Future<T> r;
        try {
            final String canonicalKey = getCanonicalizedKey(key);
            r = client.asyncGet(canonicalKey, tc);
        } catch (Exception ex) {
            if (log.isDebugEnabled()) {
                log.debug("Exception while getting data for keys Asynchronously key : " + key, ex);
            }
            if (!_throwException.get()) {
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.