Package pbx

Class NodeGrpc.NodeStub

  • Enclosing class:
    NodeGrpc

    public static final class NodeGrpc.NodeStub
    extends io.grpc.stub.AbstractAsyncStub<NodeGrpc.NodeStub>
    A stub to allow clients to do asynchronous rpc calls to service Node.
     This is the single method that needs to be implemented by a gRPC client.
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

        io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected NodeGrpc.NodeStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      io.grpc.stub.StreamObserver<Model.ClientMsg> messageLoop​(io.grpc.stub.StreamObserver<Model.ServerMsg> responseObserver)
      Client sends a stream of ClientMsg, server responds with a stream of ServerMsg
      • Methods inherited from class io.grpc.stub.AbstractAsyncStub

        newStub, newStub
      • Methods inherited from class io.grpc.stub.AbstractStub

        getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • build

        protected NodeGrpc.NodeStub build​(io.grpc.Channel channel,
                                          io.grpc.CallOptions callOptions)
        Specified by:
        build in class io.grpc.stub.AbstractStub<NodeGrpc.NodeStub>
      • messageLoop

        public io.grpc.stub.StreamObserver<Model.ClientMsg> messageLoop​(io.grpc.stub.StreamObserver<Model.ServerMsg> responseObserver)
         Client sends a stream of ClientMsg, server responds with a stream of ServerMsg