コード例 #1
0
  @Override
  public void decrement() {
    if (isTombstone())
      throw new IllegalStateException("Record was deleted and can not be updated.");

    counter--;
    timestamp = System.currentTimeMillis();
    macAddress = OVersionFactory.instance().getMacAddress();
  }
コード例 #2
0
 public ODistributedVersion(int counter) {
   this.counter = counter;
   this.timestamp = System.currentTimeMillis();
   this.macAddress = OVersionFactory.instance().getMacAddress();
 }
コード例 #3
0
 @Override
 public void reset() {
   counter = 0;
   timestamp = System.currentTimeMillis();
   macAddress = OVersionFactory.instance().getMacAddress();
 }