public static class Subscriber
Reference documentation and code samples for the Cloud Pub/Sub v1 API class Subscriber.
The service that an application uses to manipulate subscriptions and to
consume messages from a subscription via the Pull
method or by
establishing a bi-directional stream using the StreamingPull
method.
Namespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Methods
BindService(SubscriberBase)
public static ServerServiceDefinition BindService(Subscriber.SubscriberBase serviceImpl)
Creates service definition that can be registered with a server
Parameter | |
---|---|
Name | Description |
serviceImpl |
SubscriberSubscriberBase An object implementing the server-side handling logic. |
Returns | |
---|---|
Type | Description |
ServerServiceDefinition |
BindService(ServiceBinderBase, SubscriberBase)
public static void BindService(ServiceBinderBase serviceBinder, Subscriber.SubscriberBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.
Parameters | |
---|---|
Name | Description |
serviceBinder |
ServiceBinderBase Service methods will be bound by calling |
serviceImpl |
SubscriberSubscriberBase An object implementing the server-side handling logic. |