public static interface Counter.BatchUpdater extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
add(double amount)
Update the counter by the specified amount.
|
void |
flush()
Push updates to the associated counter.
|
default void |
increment()
Update the counter by one.
|
default void |
increment(long amount)
Update the counter by
amount. |
closedefault void increment()
default void increment(long amount)
amount.amount - Amount to add to the counter.void add(double amount)
void flush()