public static enum GrpcTransportBuilder.InitMode extends Enum<GrpcTransportBuilder.InitMode>
GrpcTransportBuilder.build()
method.| Enum Constant and Description |
|---|
ASYNC
In asynchronous mode, transport creation will not be blocked while waiting for discovery response and will
not throw any exceptions in case of configuration problems.
|
ASYNC_FALLBACK
In fallback asynchronous mode, neither transport creation nor user request execution will be blocked while
initial discovery is in progress.
|
SYNC
In synchronous mode, transport creation will wait for successful discovery of current database nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static GrpcTransportBuilder.InitMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcTransportBuilder.InitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcTransportBuilder.InitMode SYNC
public static final GrpcTransportBuilder.InitMode ASYNC
public static final GrpcTransportBuilder.InitMode ASYNC_FALLBACK
public static GrpcTransportBuilder.InitMode[] values()
for (GrpcTransportBuilder.InitMode c : GrpcTransportBuilder.InitMode.values()) System.out.println(c);
public static GrpcTransportBuilder.InitMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.