com.basho.riak.client.cap
Class BasicVClock
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicVClock
public BasicVClock(byte[] value)
- Create BasicVclock
- Parameters:
value
- the vector clock bytes. NOTE: clones the value
- Throws:
IllegalArgumentException
- if value
is null
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.