public class CounterImpl extends java.lang.Object implements SpecialTypes.Counter
SpecialTypes.Counter
type based on the P-Counter CRDT; the counter
BDL type uses this.Modifier and Type | Class and Description |
---|---|
static class |
CounterImpl.Handler
Provides branch, merge, and serialization logic for
CounterImpl |
Constructor and Description |
---|
CounterImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getValue() |
BaggageHandler<?> |
handler() |
void |
increment() |
void |
increment(long quantity) |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
newInstance
public BaggageHandler<?> handler()
public void increment()
increment
in interface SpecialTypes.Counter
public void increment(long quantity)
increment
in interface SpecialTypes.Counter
public long getValue()
getValue
in interface SpecialTypes.Counter
public java.lang.String toString()
toString
in class java.lang.Object