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 theRandomHandlerusingThreadLocalRandom.
-
-
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.Randomcurrent()Returns the currentRandom.
-
-
-
Method Detail
-
current
public java.util.Random current()
Description copied from class:RandomHandlerReturns the currentRandom.- Specified by:
currentin classRandomHandler- Returns:
- the current
Random.
-
-