Package | Description |
---|---|
com.google.cloud.spring.pubsub.core |
Core support for Pub/Sub in Spring.
|
com.google.cloud.spring.pubsub.core.subscriber |
Operations and template for subscribing in Spring Cloud GCP Pub/Sub.
|
com.google.cloud.spring.pubsub.support.converter |
Classes related to converting messages in Spring Cloud GCP Pub/Sub.
|
Modifier and Type | Method and Description |
---|---|
<T> Subscriber |
PubSubTemplate.subscribeAndConvert(String subscription,
Consumer<ConvertedBasicAcknowledgeablePubsubMessage<T>> messageConsumer,
Class<T> payloadType) |
Modifier and Type | Method and Description |
---|---|
<T> Subscriber |
PubSubSubscriberOperations.subscribeAndConvert(String subscription,
Consumer<ConvertedBasicAcknowledgeablePubsubMessage<T>> messageConsumer,
Class<T> payloadType)
Add a callback method to an existing subscription that receives Pub/Sub messages converted to the requested
payload type.
|
<T> Subscriber |
PubSubSubscriberTemplate.subscribeAndConvert(String subscription,
Consumer<ConvertedBasicAcknowledgeablePubsubMessage<T>> messageConsumer,
Class<T> payloadType) |
Modifier and Type | Interface and Description |
---|---|
interface |
ConvertedAcknowledgeablePubsubMessage<T>
An
AcknowledgeablePubsubMessage that also contains the payload of the Pub/Sub
message converted to the desired type T . |
Copyright © 2021. All rights reserved.