@Deprecated public class VertxContextPRNG extends VertxContextPRNG implements io.vertx.lang.rx.RxDelegate
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
Deprecated.
|
| Constructor and Description |
|---|
VertxContextPRNG(Object delegate)
Deprecated.
|
VertxContextPRNG(VertxContextPRNG delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static VertxContextPRNG |
current()
Deprecated.
|
static VertxContextPRNG |
current(Vertx vertx)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
VertxContextPRNG |
getDelegate()
Deprecated.
|
int |
hashCode()
Deprecated.
|
static VertxContextPRNG |
newInstance(VertxContextPRNG arg)
Deprecated.
|
String |
toString()
Deprecated.
|
close, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, nextStringpublic static final io.vertx.lang.rx.TypeArg<VertxContextPRNG> __TYPE_ARG
public VertxContextPRNG(VertxContextPRNG delegate)
public VertxContextPRNG(Object delegate)
public String toString()
toString in class VertxContextPRNGpublic boolean equals(Object o)
equals in class VertxContextPRNGpublic int hashCode()
hashCode in class VertxContextPRNGpublic VertxContextPRNG getDelegate()
getDelegate in interface io.vertx.lang.rx.RxDelegategetDelegate 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 © 2025 Eclipse. All rights reserved.