Package io.temporal.serviceclient
Class TestServiceStubsOptions
- java.lang.Object
-
- io.temporal.serviceclient.TestServiceStubsOptions
-
public final class TestServiceStubsOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestServiceStubsOptions.BuilderBuilder is the builder for ClientOptions.
-
Field Summary
Fields Modifier and Type Field Description protected io.grpc.ManagedChannelchannelprotected java.util.function.Consumer<io.grpc.ManagedChannelBuilder<?>>channelInitializerprotected java.time.DurationconnectionBackoffResetFrequencystatic java.time.DurationDEFAULT_CONNECTION_BACKOFF_RESET_FREQUENCYstatic java.time.DurationDEFAULT_GRPC_RECONNECT_FREQUENCYstatic java.lang.StringDEFAULT_LOCAL_DOCKER_TARGETstatic java.time.DurationDEFAULT_RPC_TIMEOUTprotected booleanenableHttpsprotected booleanenableKeepAliveprotected java.util.Collection<io.grpc.ClientInterceptor>grpcClientInterceptorsprotected java.util.Collection<io.temporal.serviceclient.GrpcMetadataProvider>grpcMetadataProvidersprotected java.time.DurationgrpcReconnectFrequencyprotected io.grpc.Metadataheadersprotected java.time.DurationhealthCheckAttemptTimeoutprotected java.time.DurationhealthCheckTimeoutprotected booleankeepAlivePermitWithoutStreamprotected java.time.DurationkeepAliveTimeprotected java.time.DurationkeepAliveTimeoutprotected com.uber.m3.tally.ScopemetricsScopeprotected java.time.DurationrpcTimeoutprotected io.grpc.netty.shaded.io.netty.handler.ssl.SslContextsslContextprotected java.lang.Stringtarget
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ManagedChannelgetChannel()java.util.function.Consumer<io.grpc.ManagedChannelBuilder<?>>getChannelInitializer()java.time.DurationgetConnectionBackoffResetFrequency()static TestServiceStubsOptionsgetDefaultInstance()booleangetEnableHttps()booleangetEnableKeepAlive()java.util.Collection<io.grpc.ClientInterceptor>getGrpcClientInterceptors()java.util.Collection<io.temporal.serviceclient.GrpcMetadataProvider>getGrpcMetadataProviders()java.time.DurationgetGrpcReconnectFrequency()io.grpc.MetadatagetHeaders()java.time.DurationgetHealthCheckAttemptTimeout()java.time.DurationgetHealthCheckTimeout()booleangetKeepAlivePermitWithoutStream()java.time.DurationgetKeepAliveTime()java.time.DurationgetKeepAliveTimeout()com.uber.m3.tally.ScopegetMetricsScope()java.time.DurationgetRpcTimeout()io.grpc.netty.shaded.io.netty.handler.ssl.SslContextgetSslContext()java.lang.StringgetTarget()static TestServiceStubsOptions.BuildernewBuilder()static TestServiceStubsOptions.BuildernewBuilder(io.temporal.serviceclient.ServiceStubsOptions options)
-
-
-
Field Detail
-
DEFAULT_LOCAL_DOCKER_TARGET
public static final java.lang.String DEFAULT_LOCAL_DOCKER_TARGET
- See Also:
- Constant Field Values
-
DEFAULT_RPC_TIMEOUT
public static final java.time.Duration DEFAULT_RPC_TIMEOUT
-
DEFAULT_CONNECTION_BACKOFF_RESET_FREQUENCY
public static final java.time.Duration DEFAULT_CONNECTION_BACKOFF_RESET_FREQUENCY
-
DEFAULT_GRPC_RECONNECT_FREQUENCY
public static final java.time.Duration DEFAULT_GRPC_RECONNECT_FREQUENCY
-
channel
protected final io.grpc.ManagedChannel channel
-
target
protected final java.lang.String target
-
channelInitializer
@Nullable protected final java.util.function.Consumer<io.grpc.ManagedChannelBuilder<?>> channelInitializer
-
enableHttps
protected final boolean enableHttps
-
sslContext
protected final io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext
-
healthCheckAttemptTimeout
protected final java.time.Duration healthCheckAttemptTimeout
-
healthCheckTimeout
protected final java.time.Duration healthCheckTimeout
-
enableKeepAlive
protected final boolean enableKeepAlive
-
keepAliveTime
protected final java.time.Duration keepAliveTime
-
keepAliveTimeout
protected final java.time.Duration keepAliveTimeout
-
keepAlivePermitWithoutStream
protected final boolean keepAlivePermitWithoutStream
-
rpcTimeout
protected final java.time.Duration rpcTimeout
-
connectionBackoffResetFrequency
protected final java.time.Duration connectionBackoffResetFrequency
-
grpcReconnectFrequency
protected final java.time.Duration grpcReconnectFrequency
-
headers
protected final io.grpc.Metadata headers
-
grpcMetadataProviders
protected final java.util.Collection<io.temporal.serviceclient.GrpcMetadataProvider> grpcMetadataProviders
-
grpcClientInterceptors
protected final java.util.Collection<io.grpc.ClientInterceptor> grpcClientInterceptors
-
metricsScope
protected final com.uber.m3.tally.Scope metricsScope
-
-
Method Detail
-
newBuilder
public static TestServiceStubsOptions.Builder newBuilder()
-
newBuilder
public static TestServiceStubsOptions.Builder newBuilder(io.temporal.serviceclient.ServiceStubsOptions options)
-
getDefaultInstance
public static TestServiceStubsOptions getDefaultInstance()
-
getChannel
public io.grpc.ManagedChannel getChannel()
-
getTarget
public java.lang.String getTarget()
-
getChannelInitializer
@Nullable public java.util.function.Consumer<io.grpc.ManagedChannelBuilder<?>> getChannelInitializer()
-
getEnableHttps
public boolean getEnableHttps()
-
getSslContext
public io.grpc.netty.shaded.io.netty.handler.ssl.SslContext getSslContext()
-
getHealthCheckAttemptTimeout
public java.time.Duration getHealthCheckAttemptTimeout()
-
getHealthCheckTimeout
public java.time.Duration getHealthCheckTimeout()
-
getEnableKeepAlive
public boolean getEnableKeepAlive()
-
getKeepAliveTime
public java.time.Duration getKeepAliveTime()
-
getKeepAliveTimeout
public java.time.Duration getKeepAliveTimeout()
-
getKeepAlivePermitWithoutStream
public boolean getKeepAlivePermitWithoutStream()
-
getRpcTimeout
public java.time.Duration getRpcTimeout()
-
getConnectionBackoffResetFrequency
public java.time.Duration getConnectionBackoffResetFrequency()
-
getGrpcReconnectFrequency
public java.time.Duration getGrpcReconnectFrequency()
-
getHeaders
public io.grpc.Metadata getHeaders()
-
getGrpcMetadataProviders
public java.util.Collection<io.temporal.serviceclient.GrpcMetadataProvider> getGrpcMetadataProviders()
-
getGrpcClientInterceptors
public java.util.Collection<io.grpc.ClientInterceptor> getGrpcClientInterceptors()
-
getMetricsScope
@Nonnull public com.uber.m3.tally.Scope getMetricsScope()
-
-