Class PublisherGrpc.PublisherFutureStub (0.54.0)

public static final class PublisherGrpc.PublisherFutureStub extends AbstractFutureStub<PublisherGrpc.PublisherFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Publisher.

Eventarc processes events generated by an event provider and delivers them to a subscriber. An event provider is a software-as-a-service (SaaS) system or product that can generate and deliver events through Eventarc. A third-party event provider is an event provider from outside of Google. A partner is a third-party event provider that is integrated with Eventarc. A subscriber is a GCP customer interested in receiving events. Channel is a first-class Eventarc resource that is created and managed by the subscriber in their GCP project. A Channel represents a subscriber's intent to receive events from an event provider. A Channel is associated with exactly one event provider. ChannelConnection is a first-class Eventarc resource that is created and managed by the partner in their GCP project. A ChannelConnection represents a connection between a partner and a subscriber's Channel. A ChannelConnection has a one-to-one mapping with a Channel. Publisher allows an event provider to publish events to Eventarc.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > PublisherGrpc.PublisherFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected PublisherGrpc.PublisherFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
PublisherGrpc.PublisherFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

publish(PublishRequest request)

public ListenableFuture<PublishResponse> publish(PublishRequest request)

Publish events to a message bus.

Parameter
Name Description
request PublishRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PublishResponse>

publishChannelConnectionEvents(PublishChannelConnectionEventsRequest request)

public ListenableFuture<PublishChannelConnectionEventsResponse> publishChannelConnectionEvents(PublishChannelConnectionEventsRequest request)

Publish events to a ChannelConnection in a partner's project.

Parameter
Name Description
request PublishChannelConnectionEventsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PublishChannelConnectionEventsResponse>

publishEvents(PublishEventsRequest request)

public ListenableFuture<PublishEventsResponse> publishEvents(PublishEventsRequest request)

Publish events to a subscriber's channel.

Parameter
Name Description
request PublishEventsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<PublishEventsResponse>