public static interface GrpcServiceFactory.ServerBinder
Modifier and Type | Method and Description |
---|---|
Single<ServerContext> |
bind(HttpService service)
Binds an
HttpService to the associated server. |
Single<ServerContext> |
bindBlocking(BlockingHttpService service)
Binds a
BlockingHttpService to the associated server. |
Single<ServerContext> |
bindBlockingStreaming(BlockingStreamingHttpService service)
Binds a
BlockingStreamingHttpService to the associated server. |
Single<ServerContext> |
bindStreaming(StreamingHttpService service)
Binds a
StreamingHttpService to the associated server. |
Single<ServerContext> 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<ServerContext> 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<ServerContext> 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<ServerContext> 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.