Class CounterResolver.AtomicBigInteger
java.lang.Object
org.apache.logging.log4j.layout.template.json.resolver.CounterResolver.AtomicBigInteger
- Enclosing class:
CounterResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
compareAndSetWithBackOff
(BigInteger prevNumber, BigInteger nextNumber) AtomicReference.compareAndSet(Object, Object)
shortcut with a constant back off.private BigInteger
-
Field Details
-
lastNumber
-
-
Constructor Details
-
AtomicBigInteger
-
-
Method Details
-
getAndIncrement
-
compareAndSetWithBackOff
AtomicReference.compareAndSet(Object, Object)
shortcut with a constant back off. This technique was originally described in Lightweight Contention Management for Efficient Compare-and-Swap Operations and showed great results in benchmarks.
-