Class ThreadLocalRandomHandler
- java.lang.Object
-
- io.opencensus.implcore.trace.internal.RandomHandler
-
- io.opencensus.impl.trace.internal.ThreadLocalRandomHandler
-
@ThreadSafe public final class ThreadLocalRandomHandler extends RandomHandler
Implementation of theRandomHandler
usingThreadLocalRandom
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.implcore.trace.internal.RandomHandler
RandomHandler.SecureRandomHandler
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalRandomHandler()
Constructs a newThreadLocalRandomHandler
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Random
current()
Returns the currentRandom
.
-
-
-
Method Detail
-
current
public java.util.Random current()
Description copied from class:RandomHandler
Returns the currentRandom
.- Specified by:
current
in classRandomHandler
- Returns:
- the current
Random
.
-
-