Package io.servicetalk.health.v1
Class Health.ServiceFactory.Builder
java.lang.Object
io.servicetalk.grpc.api.GrpcRoutes<Health.HealthService>
io.servicetalk.health.v1.Health.ServiceFactory.Builder
- Enclosing class:
- Health.ServiceFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class io.servicetalk.grpc.api.GrpcRoutes
GrpcRoutes.AllGrpcRoutes, GrpcRoutes.BlockingRequestStreamingRoute<Req,
Resp>, GrpcRoutes.BlockingResponseStreamingRoute<Req, Resp>, GrpcRoutes.BlockingRoute<Req, Resp>, GrpcRoutes.BlockingStreamingRoute<Req, Resp>, GrpcRoutes.RequestStreamingRoute<Req, Resp>, GrpcRoutes.ResponseStreamingRoute<Req, Resp>, GrpcRoutes.Route<Req, Resp>, GrpcRoutes.StreamingRoute<Req, Resp> -
Constructor Summary
ConstructorDescriptionBuilder()
Create a new instance.Builder
(RouteExecutionStrategyFactory<GrpcExecutionStrategy> strategyFactory) Deprecated.Builder
(RouteExecutionStrategyFactory<GrpcExecutionStrategy> strategyFactory, List<ContentCodec> supportedMessageCodings) Deprecated.Builder
(List<ContentCodec> supportedMessageCodings) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddService
(Health.BlockingHealthService service) addService
(Health.HealthService service) bufferDecoderGroup
(BufferDecoderGroup bufferDecoderGroup) bufferEncoders
(List<BufferEncoder> bufferEncoders) build()
check
(GrpcExecutionStrategy strategy, Health.CheckRpc rpc) check
(Health.CheckRpc rpc) checkBlocking
(GrpcExecutionStrategy strategy, Health.BlockingCheckRpc rpc) protected io.servicetalk.health.v1.Health.ServiceFactory.Builder.HealthServiceFromRoutes
Deprecated.protected void
registerRoutes
(Health.HealthService service) Deprecated.routeExecutionStrategyFactory
(RouteExecutionStrategyFactory<GrpcExecutionStrategy> strategyFactory) Setter for theRouteExecutionStrategyFactory
, intended to be made public by implementations.watch
(GrpcExecutionStrategy strategy, Health.WatchRpc rpc) watch
(Health.WatchRpc rpc) watchBlocking
(GrpcExecutionStrategy strategy, Health.BlockingWatchRpc rpc) Methods inherited from class io.servicetalk.grpc.api.GrpcRoutes
addBlockingRequestStreamingRoute, addBlockingRequestStreamingRoute, addBlockingRequestStreamingRoute, addBlockingRequestStreamingRoute, addBlockingResponseStreamingRoute, addBlockingResponseStreamingRoute, addBlockingResponseStreamingRoute, addBlockingResponseStreamingRoute, addBlockingRoute, addBlockingRoute, addBlockingRoute, addBlockingRoute, addBlockingStreamingRoute, addBlockingStreamingRoute, addBlockingStreamingRoute, addBlockingStreamingRoute, addRequestStreamingRoute, addRequestStreamingRoute, addRequestStreamingRoute, addRequestStreamingRoute, addResponseStreamingRoute, addResponseStreamingRoute, addResponseStreamingRoute, addResponseStreamingRoute, addRoute, addRoute, addRoute, addRoute, addStreamingRoute, addStreamingRoute, addStreamingRoute, addStreamingRoute
-
Constructor Details
-
Builder
public Builder()Create a new instance. -
Builder
Deprecated.Create a new instance.- Parameters:
supportedMessageCodings
- the set of allowed encodings
-
Builder
Deprecated.userouteExecutionStrategyFactory(RouteExecutionStrategyFactory)
on the Builder instead.Create a new instance.- Parameters:
strategyFactory
- a factory that creates an execution strategy for differentid
s
-
Builder
@Deprecated public Builder(RouteExecutionStrategyFactory<GrpcExecutionStrategy> strategyFactory, List<ContentCodec> supportedMessageCodings) Deprecated.Create a new instance.- Parameters:
strategyFactory
- a factory that creates an execution strategy for differentid
ssupportedMessageCodings
- the set of allowed encodings
-
-
Method Details
-
bufferDecoderGroup
-
bufferEncoders
-
routeExecutionStrategyFactory
public Health.ServiceFactory.Builder routeExecutionStrategyFactory(RouteExecutionStrategyFactory<GrpcExecutionStrategy> strategyFactory) Description copied from class:GrpcRoutes
Setter for theRouteExecutionStrategyFactory
, intended to be made public by implementations.- Overrides:
routeExecutionStrategyFactory
in classGrpcRoutes<Health.HealthService>
- Parameters:
strategyFactory
- the factory to set.- Returns:
- this instance for chaining purposes.
-
build
-
newServiceFromRoutes
@Deprecated protected io.servicetalk.health.v1.Health.ServiceFactory.Builder.HealthServiceFromRoutes newServiceFromRoutes(GrpcRoutes.AllGrpcRoutes routes) Deprecated.Description copied from class:GrpcRoutes
Create a newGrpcRoutes
from the passedGrpcRoutes.AllGrpcRoutes
.- Specified by:
newServiceFromRoutes
in classGrpcRoutes<Health.HealthService>
- Parameters:
routes
-GrpcRoutes.AllGrpcRoutes
for which aGrpcRoutes
has to be created.- Returns:
GrpcRoutes
containing all the passed routes.
-
check
-
check
-
checkBlocking
-
checkBlocking
public Health.ServiceFactory.Builder checkBlocking(GrpcExecutionStrategy strategy, Health.BlockingCheckRpc rpc) -
watch
-
watch
-
watchBlocking
-
watchBlocking
public Health.ServiceFactory.Builder watchBlocking(GrpcExecutionStrategy strategy, Health.BlockingWatchRpc rpc) -
addService
-
addService
Adds aHealth.BlockingHealthService
implementation.- Parameters:
service
- theHealth.BlockingHealthService
implementation to add.- Returns:
- this.
-
addBlockingService
-
registerRoutes
Deprecated.Description copied from class:GrpcRoutes
Register all routes contained in the passedGrpcRoutes
.- Specified by:
registerRoutes
in classGrpcRoutes<Health.HealthService>
- Parameters:
service
-GrpcRoutes
for which routes have to be registered.
-
routeExecutionStrategyFactory(RouteExecutionStrategyFactory)
on the Builder instead.