diff options
Diffstat (limited to 'kamon-core/src/main/java')
-rw-r--r-- | kamon-core/src/main/java/kamon/jsr166/LongMaxUpdater.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kamon-core/src/main/java/kamon/jsr166/LongMaxUpdater.java b/kamon-core/src/main/java/kamon/jsr166/LongMaxUpdater.java index 226cd9a1..e4ba8807 100644 --- a/kamon-core/src/main/java/kamon/jsr166/LongMaxUpdater.java +++ b/kamon-core/src/main/java/kamon/jsr166/LongMaxUpdater.java @@ -43,6 +43,14 @@ public class LongMaxUpdater extends Striped64 implements Serializable { } /** + * Creates a new instance with the given initialValue + */ + public LongMaxUpdater(long initialValue) { + base = initialValue; + } + + + /** * Updates the maximum to be at least the given value. * * @param x the value to update |