@Retention(value=RUNTIME) @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) public @interface RiakTombstone
This annotation is used to denote a boolean field or getter/setter pair that will be marked true if the object is a tombstone (deleted vector clock)
public class MyPojo { @RiakTombstone public boolean tombstone; } public class AnotherPojo { private boolean tombstone; @RiakTombstone public boolean getTombstone() { return tombstone; } @RiakTombstone public void setTombstone(boolean tombstone) { this.tombstone = tombstone; } }
Copyright © 2014. All rights reserved.