Package io.grpc.grpclb
Class GrpclbConfig
java.lang.Object
io.grpc.grpclb.GrpclbConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final GrpclbState.Mode
private final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GrpclbConfig
(GrpclbState.Mode mode, String serviceName, long fallbackTimeoutMs) -
Method Summary
Modifier and TypeMethodDescription(package private) static GrpclbConfig
create
(GrpclbState.Mode mode) (package private) static GrpclbConfig
create
(GrpclbState.Mode mode, String serviceName, long fallbackTimeoutMs) boolean
(package private) long
(package private) GrpclbState.Mode
getMode()
(package private) String
If specified, it overrides the name of the service name to be sent to the balancer.int
hashCode()
toString()
-
Field Details
-
mode
-
serviceName
-
fallbackTimeoutMs
private final long fallbackTimeoutMs
-
-
Constructor Details
-
GrpclbConfig
-
-
Method Details
-
create
-
create
static GrpclbConfig create(GrpclbState.Mode mode, @Nullable String serviceName, long fallbackTimeoutMs) -
getMode
GrpclbState.Mode getMode() -
getFallbackTimeoutMs
long getFallbackTimeoutMs() -
getServiceName
If specified, it overrides the name of the service name to be sent to the balancer. if not, the target to be sent to the balancer will continue to be obtained from the target URI passed to the gRPC client channel. -
equals
-
hashCode
public int hashCode() -
toString
-