@Immutable
public interface Counter
| Modifier and Type | Method and Description |
|---|---|
long |
incrementAndGet(long delta)
Add value to it.
|
String |
name()
Its name.
|
void |
set(long value)
Set specific value.
|
String name()
void set(long value)
throws IOException
value - Value to setIOException - If some I/O problemlong incrementAndGet(long delta)
throws IOException
delta - Delta to add (can be zero or negative)IOException - If some I/O problemCopyright © 2014–2015 stateful.co. All rights reserved.