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 longfallbackTimeoutMsprivate GrpclbState.Modemodeprivate java.lang.StringserviceName
-
Constructor Summary
Constructors Modifier Constructor Description privateGrpclbConfig(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 GrpclbConfigcreate(GrpclbState.Mode mode)(package private) static GrpclbConfigcreate(GrpclbState.Mode mode, java.lang.String serviceName, long fallbackTimeoutMs)booleanequals(java.lang.Object o)(package private) longgetFallbackTimeoutMs()(package private) GrpclbState.ModegetMode()(package private) java.lang.StringgetServiceName()If specified, it overrides the name of the service name to be sent to the balancer.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-