/* (non-Javadoc) * @see com.basho.riak.client.HttpRiakObject#store(com.basho.riak.client.RiakClient, com.basho.riak.client.request.RequestMeta) */ public StoreResponse store(RiakClient riak, RequestMeta meta) { if (riak == null) throw new IllegalStateException("Cannot store an object without a RiakClient"); StoreResponse r = riak.store(this, meta); if (r.isSuccess()) { this.updateMeta(r); } return r; }
/* (non-Javadoc) * @see com.basho.riak.client.HttpRiakObject#updateMeta(com.basho.riak.client.response.StoreResponse) */ public void updateMeta(StoreResponse response) { if (response == null) { vclock = null; lastmod = null; vtag = null; } else { vclock = response.getVclock(); lastmod = response.getLastmod(); vtag = response.getVtag(); } }