Class PubSubGrpc.PubSubBlockingStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PubSubGrpc.PubSubBlockingStub>
com.salesforce.eventbus.protobuf.PubSubGrpc.PubSubBlockingStub
Enclosing class:
PubSubGrpc

public static final class PubSubGrpc.PubSubBlockingStub extends io.grpc.stub.AbstractBlockingStub<PubSubGrpc.PubSubBlockingStub>
A stub to allow clients to do synchronous rpc calls to service PubSub.
 The Pub/Sub API provides a single interface for publishing and subscribing to platform events, including real-time
 event monitoring events, and change data capture events. The Pub/Sub API is a gRPC API that is based on HTTP/2.
 A session token is needed to authenticate. Any of the Salesforce supported
 OAuth flows can be used to obtain a session token:
 https://help.salesforce.com/articleView?id=sf.remoteaccess_oauth_flows.htm&type=5
 For each RPC, a client needs to pass authentication information
 as metadata headers (https://www.grpc.io/docs/guides/concepts/#metadata) with their method call.
 For Salesforce session token authentication, use:
   accesstoken : access token
   instanceurl : Salesforce instance URL
   tenantid : tenant/org id of the client
 StatusException is thrown in case of response failure for any request.
 
  • 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

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    Get the event schema for a topic based on a schema ID.
    Get the topic Information related to the specified topic.
    Send a publish request to synchronously publish events to a topic.

    Methods inherited from class io.grpc.stub.AbstractBlockingStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait