Package io.servicetalk.grpc.api
Interface GrpcServiceFactory.ServerBinder
- Enclosing class:
- GrpcServiceFactory<Service extends GrpcService>
public static interface GrpcServiceFactory.ServerBinder
A utility to bind an HTTP service for gRPC with an
appropriate programming model.
-
Method Summary
Modifier and TypeMethodDescriptionbind(HttpService service) Binds anHttpServiceto the associated server.bindBlocking(BlockingHttpService service) Binds aBlockingHttpServiceto the associated server.Binds aBlockingStreamingHttpServiceto the associated server.bindStreaming(StreamingHttpService service) Binds aStreamingHttpServiceto the associated server.
-
Method Details
-
bind
Binds anHttpServiceto the associated server.If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on
address.- Parameters:
service-HttpServiceto bind.- Returns:
- A
Singlethat completes when the server is successfully started or terminates with an error if the server could not be started.
-
bindStreaming
Binds aStreamingHttpServiceto the associated server.If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on
address.- Parameters:
service-StreamingHttpServiceto bind.- Returns:
- A
Singlethat completes when the server is successfully started or terminates with an error if the server could not be started.
-
bindBlocking
Binds aBlockingHttpServiceto the associated server.If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on
address.- Parameters:
service-BlockingHttpServiceto bind.- Returns:
- A
Singlethat completes when the server is successfully started or terminates with an error if the server could not be started.
-
bindBlockingStreaming
Binds aBlockingStreamingHttpServiceto the associated server.If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on
address.- Parameters:
service-BlockingStreamingHttpServiceto bind.- Returns:
- A
Singlethat completes when the server is successfully started or terminates with an error if the server could not be started.
-