public abstract class GcpPubSubHeaders extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ORDERING_KEY
The Pub/Sub message ordering key.
|
static String |
ORIGINAL_MESSAGE
The original message header text.
|
static String |
TOPIC
The topic header text.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<BasicAcknowledgeablePubsubMessage> |
getOriginalMessage(org.springframework.messaging.Message<?> message)
A simple utility method for pulling the
ORIGINAL_MESSAGE header out of a Message. |
public static final String TOPIC
public static final String ORIGINAL_MESSAGE
public static final String ORDERING_KEY
public static Optional<BasicAcknowledgeablePubsubMessage> getOriginalMessage(org.springframework.messaging.Message<?> message)
ORIGINAL_MESSAGE header out of a Message.message - The Spring Message that was converted by a
PubSubInboundChannelAdapter.Copyright © 2021. All rights reserved.