com.basho.riak.client.cap
Class BasicVClock

java.lang.Object
  extended by com.basho.riak.client.cap.BasicVClock
All Implemented Interfaces:
VClock

public class BasicVClock
extends Object
implements VClock

An implementation of VClock that wraps a byte[]

Author:
russell

Constructor Summary
BasicVClock(byte[] value)
          Create BasicVclock
 
Method Summary
 String asString()
           
 byte[] getBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicVClock

public BasicVClock(byte[] value)
Create BasicVclock

Parameters:
value - the vector clock bytes. NOTE: clones the value
Throws:
IllegalArgumentException - if value is null
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface VClock
Returns:
a copy of this vector clocks bytes

asString

public String asString()
Specified by:
asString in interface VClock
Returns:
a UTF-8 String of this vector clocks bytes


Copyright © 2012. All Rights Reserved.