public class VertxContextPRNG extends VertxContextPRNG
When applicable, use of VertxContextPRNG rather than create new PRNG objects is helpful to keep the system entropy usage to the minimum avoiding potential blocking across the application.
The use of VertxContextPRNG is particularly appropriate when multiple handlers use random numbers.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<VertxContextPRNG> |
__TYPE_ARG |
Constructor and Description |
---|
VertxContextPRNG(Object delegate) |
VertxContextPRNG(VertxContextPRNG delegate) |
Modifier and Type | Method and Description |
---|---|
static VertxContextPRNG |
current()
Deprecated.
|
static VertxContextPRNG |
current(Vertx vertx)
Deprecated.
|
boolean |
equals(Object o) |
VertxContextPRNG |
getDelegate() |
int |
hashCode() |
static VertxContextPRNG |
newInstance(VertxContextPRNG arg) |
String |
toString() |
close, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextString
public static final io.vertx.lang.rx.TypeArg<VertxContextPRNG> __TYPE_ARG
public VertxContextPRNG(VertxContextPRNG delegate)
public VertxContextPRNG(Object delegate)
public String toString()
toString
in class VertxContextPRNG
public boolean equals(Object o)
equals
in class VertxContextPRNG
public int hashCode()
hashCode
in class VertxContextPRNG
public VertxContextPRNG getDelegate()
getDelegate
in class VertxContextPRNG
@Deprecated public static VertxContextPRNG current()
IllegalStateException
is thrown.
Note, if a context isn't allowed to be used, for example, exceptions are thrown on getting and putting data,
the VertxContextPRNG falls back to instantiate a new instance of the PRNG per call.@Deprecated public static VertxContextPRNG current(Vertx vertx)
vertx
- a Vert.x instance.public static VertxContextPRNG newInstance(VertxContextPRNG arg)
Copyright © 2024 Eclipse. All rights reserved.