Class ThreadLocalRandomHandler
java.lang.Object
io.opencensus.implcore.trace.internal.RandomHandler
io.opencensus.impl.trace.internal.ThreadLocalRandomHandler
Implementation of the
RandomHandler using ThreadLocalRandom.-
Nested Class Summary
Nested classes/interfaces inherited from class RandomHandler
RandomHandler.SecureRandomHandler -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadLocalRandomHandler
public ThreadLocalRandomHandler()Constructs a newThreadLocalRandomHandler.
-
-
Method Details
-
current
Description copied from class:RandomHandlerReturns the currentRandom.- Specified by:
currentin classRandomHandler- Returns:
- the current
Random.
-