Package io.grpc.grpclb
Class GrpclbConfig
- java.lang.Object
-
- io.grpc.grpclb.GrpclbConfig
-
final class GrpclbConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private long
fallbackTimeoutMs
private GrpclbState.Mode
mode
private java.lang.String
serviceName
-
Constructor Summary
Constructors Modifier Constructor Description private
GrpclbConfig(GrpclbState.Mode mode, java.lang.String serviceName, long fallbackTimeoutMs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static GrpclbConfig
create(GrpclbState.Mode mode)
(package private) static GrpclbConfig
create(GrpclbState.Mode mode, java.lang.String serviceName, long fallbackTimeoutMs)
boolean
equals(java.lang.Object o)
(package private) long
getFallbackTimeoutMs()
(package private) GrpclbState.Mode
getMode()
(package private) java.lang.String
getServiceName()
If specified, it overrides the name of the service name to be sent to the balancer.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
mode
private final GrpclbState.Mode mode
-
serviceName
@Nullable private final java.lang.String serviceName
-
fallbackTimeoutMs
private final long fallbackTimeoutMs
-
-
Constructor Detail
-
GrpclbConfig
private GrpclbConfig(GrpclbState.Mode mode, @Nullable java.lang.String serviceName, long fallbackTimeoutMs)
-
-
Method Detail
-
create
static GrpclbConfig create(GrpclbState.Mode mode)
-
create
static GrpclbConfig create(GrpclbState.Mode mode, @Nullable java.lang.String serviceName, long fallbackTimeoutMs)
-
getMode
GrpclbState.Mode getMode()
-
getFallbackTimeoutMs
long getFallbackTimeoutMs()
-
getServiceName
@Nullable java.lang.String 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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-