Package com.basho.riak.client.bucket

Examples of com.basho.riak.client.bucket.RiakBucket


      {
        final KeyValueMessage kvMessage = (KeyValueMessage) parameters[0];
        final String key = kvMessage.getKey ();
        // FIXME: use the vector clock...
        final IRiakObject riakObject = RiakObjectBuilder.newBuilder (RiakOperationFactory.this.bucket.getName (), key).addUsermeta (IOperationFactory.CONTENT_ENCODING, kvMessage.getContentEncoding ()).withContentType (kvMessage.getContentType ()).withValue (kvMessage.getData ()).build ();
        final RiakBucket riakBucket = RiakBucket.newRiakBucket (RiakOperationFactory.this.bucket);
        try {
          riakBucket.store (riakObject);
        } catch (final RiakException e) {
          // TODO: shutdown all connectors for this bucket?
          FallbackExceptionTracer.defaultInstance.traceIgnoredException (e);
          return false;
        }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.bucket.RiakBucket

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.