public static interface GrpcServiceFactory.ServerBinder
| Modifier and Type | Method and Description |
|---|---|
Single<HttpServerContext> |
bind(HttpService service)
Binds an
HttpService to the associated server. |
Single<HttpServerContext> |
bindBlocking(BlockingHttpService service)
Binds a
BlockingHttpService to the associated server. |
Single<HttpServerContext> |
bindBlockingStreaming(BlockingStreamingHttpService service)
Binds a
BlockingStreamingHttpService to the associated server. |
Single<HttpServerContext> |
bindStreaming(StreamingHttpService service)
Binds a
StreamingHttpService to the associated server. |
Single<HttpServerContext> bind(HttpService service)
HttpService to the associated server.
If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.
service - HttpService to bind.Single that completes when the server is successfully started or terminates with an error
if the server could not be started.Single<HttpServerContext> bindStreaming(StreamingHttpService service)
StreamingHttpService to the associated server.
If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.
service - StreamingHttpService to bind.Single that completes when the server is successfully started or terminates with an error
if the server could not be started.Single<HttpServerContext> bindBlocking(BlockingHttpService service)
BlockingHttpService to the associated server.
If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.
service - BlockingHttpService to bind.Single that completes when the server is successfully started or terminates with an error
if the server could not be started.Single<HttpServerContext> bindBlockingStreaming(BlockingStreamingHttpService service)
BlockingStreamingHttpService to the associated server.
If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.
service - BlockingStreamingHttpService to bind.Single that completes when the server is successfully started or terminates with an error
if the server could not be started.