Package pbx
Class PluginGrpc.PluginFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<PluginGrpc.PluginFutureStub>
-
- pbx.PluginGrpc.PluginFutureStub
-
- Enclosing class:
- PluginGrpc
public static final class PluginGrpc.PluginFutureStub extends io.grpc.stub.AbstractFutureStub<PluginGrpc.PluginFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Plugin.Plugin interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Model.Unused>account(Model.AccountEvent request)Account created, updated or deletedprotected PluginGrpc.PluginFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)com.google.common.util.concurrent.ListenableFuture<Model.SearchFound>find(Model.SearchQuery request)An alteranative user and topic discovery mechanism.com.google.common.util.concurrent.ListenableFuture<Model.ServerResp>fireHose(Model.ClientReq request)This plugin method is called by Tinode server for every message received from the clients.com.google.common.util.concurrent.ListenableFuture<Model.Unused>message(Model.MessageEvent request)Message published or deletedcom.google.common.util.concurrent.ListenableFuture<Model.Unused>subscription(Model.SubscriptionEvent request)Subscription created, updated or deletedcom.google.common.util.concurrent.ListenableFuture<Model.Unused>topic(Model.TopicEvent request)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.PluginFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<PluginGrpc.PluginFutureStub>
-
fireHose
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<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.
-
account
public com.google.common.util.concurrent.ListenableFuture<Model.Unused> account(Model.AccountEvent request)
Account created, updated or deleted
-
topic
public com.google.common.util.concurrent.ListenableFuture<Model.Unused> topic(Model.TopicEvent request)
Topic created, updated [or deleted -- not supported yet]
-
subscription
public com.google.common.util.concurrent.ListenableFuture<Model.Unused> subscription(Model.SubscriptionEvent request)
Subscription created, updated or deleted
-
message
public com.google.common.util.concurrent.ListenableFuture<Model.Unused> message(Model.MessageEvent request)
Message published or deleted
-
-