Package pbx

Class PluginGrpc.PluginBlockingStub

  • Enclosing class:
    PluginGrpc

    public static final class PluginGrpc.PluginBlockingStub
    extends io.grpc.stub.AbstractBlockingStub<PluginGrpc.PluginBlockingStub>
    A stub to allow clients to do synchronous 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 Detail

      • fireHose

        public Model.ServerResp fireHose​(Model.ClientReq request)
         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 Model.SearchFound find​(Model.SearchQuery request)
         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.