Interface GrpcServiceFactory.ServerBinder

    • Method Detail

      • bind

        Single<ServerContext> bind​(HttpService service)
        Binds an HttpService to the associated server.

        If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.

        Parameters:
        service - HttpService to bind.
        Returns:
        A Single that completes when the server is successfully started or terminates with an error if the server could not be started.
      • bindStreaming

        Single<ServerContext> bindStreaming​(StreamingHttpService service)
        Binds a StreamingHttpService to the associated server.

        If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.

        Parameters:
        service - StreamingHttpService to bind.
        Returns:
        A Single that completes when the server is successfully started or terminates with an error if the server could not be started.
      • bindBlocking

        Single<ServerContext> bindBlocking​(BlockingHttpService service)
        Binds a BlockingHttpService to the associated server.

        If the underlying protocol (eg. TCP) supports it this will result in a socket bind/listen on address.

        Parameters:
        service - BlockingHttpService to bind.
        Returns:
        A Single that completes when the server is successfully started or terminates with an error if the server could not be started.