Package pbx
Class PluginGrpc.PluginStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<PluginGrpc.PluginStub>
-
- pbx.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccount(Model.AccountEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)Account created, updated or deletedprotected PluginGrpc.PluginStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidfind(Model.SearchQuery request, io.grpc.stub.StreamObserver<Model.SearchFound> responseObserver)An alteranative user and topic discovery mechanism.voidfireHose(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.voidmessage(Model.MessageEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)Message published or deletedvoidsubscription(Model.SubscriptionEvent request, io.grpc.stub.StreamObserver<Model.Unused> responseObserver)Subscription created, updated or deletedvoidtopic(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.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected PluginGrpc.PluginStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<PluginGrpc.PluginStub>
-
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
-
-