Package io.grpc.grpclb
Class GrpclbConfig
java.lang.Object
io.grpc.grpclb.GrpclbConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final GrpclbState.Modeprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGrpclbConfig(GrpclbState.Mode mode, String serviceName, long fallbackTimeoutMs) -
Method Summary
Modifier and TypeMethodDescription(package private) static GrpclbConfigcreate(GrpclbState.Mode mode) (package private) static GrpclbConfigcreate(GrpclbState.Mode mode, String serviceName, long fallbackTimeoutMs) boolean(package private) long(package private) GrpclbState.ModegetMode()(package private) StringIf specified, it overrides the name of the service name to be sent to the balancer.inthashCode()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
-