Package pbx

Class PluginGrpc.PluginStub

  • Enclosing class:
    PluginGrpc

    public static final class PluginGrpc.PluginStub
    extends io.grpc.stub.AbstractAsyncStub<PluginGrpc.PluginStub>
    A stub to allow clients to do asynchronous rpc calls to service Plugin.
     Plugin interface.
     
    • 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
      void account​(Model.AccountEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
      Account created, updated or deleted
      protected PluginGrpc.PluginStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      void find​(Model.SearchQuery request, io.grpc.stub.StreamObserver<Model.SearchFound> responseObserver)
      An alteranative user and topic discovery mechanism.
      void fireHose​(Model.ClientReq request, io.grpc.stub.StreamObserver<Model.ServerResp> responseObserver)
      This plugin method is called by Tinode server for every message received from the clients.
      void message​(Model.MessageEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
      Message published or deleted
      void subscription​(Model.SubscriptionEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
      Subscription created, updated or deleted
      void topic​(Model.TopicEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
      Topic created, updated [or deleted -- not supported yet]
      • 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

      • fireHose

        public void fireHose​(Model.ClientReq request,
                             io.grpc.stub.StreamObserver<Model.ServerResp> responseObserver)
         This plugin method is called by Tinode server for every message received from the clients. The
         method returns a ServerCtrl message. Non-zero ServerCtrl.code indicates that no further
         processing is needed. The Tinode server will generate a {ctrl} message from the returned ServerCtrl
         and forward it to the client session.
         ServerCtrl.code equals to 0 instructs the server to continue with default processing of the client message.
         
      • find

        public void find​(Model.SearchQuery request,
                         io.grpc.stub.StreamObserver<Model.SearchFound> responseObserver)
         An alteranative user and topic discovery mechanism.
         A search request issued on a 'fnd' topic. This method is called to generate an alternative result set.
         
      • account

        public void account​(Model.AccountEvent request,
                            io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
         Account created, updated or deleted
         
      • topic

        public void topic​(Model.TopicEvent request,
                          io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
         Topic created, updated [or deleted -- not supported yet]
         
      • subscription

        public void subscription​(Model.SubscriptionEvent request,
                                 io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
         Subscription created, updated or deleted
         
      • message

        public void message​(Model.MessageEvent request,
                            io.grpc.stub.StreamObserver<Model.Unused> responseObserver)
         Message published or deleted