Send feedback
Class MessageTransforms (1.11.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.11.2 keyboard_arrow_down
public class MessageTransforms
MessageTransforms details how to transform message representations from Cloud Pub/Sub to Pub/Sub
Lite.
Transformers are made public to allow user code that currently uses PubsubMessages to use
interfaces interacting with Pub/Sub Lite.
Static Fields
public static final String PUBSUB_LITE_EVENT_TIME_TIMESTAMP_PROTO
Field Value
Static Methods
public static Timestamp decodeAttributeEventTime ( String encoded )
Decode a timestamp encoded with encodeAttributeEventTime.
Parameter
Returns
Exceptions
public static String encodeAttributeEventTime ( Timestamp timestamp )
Encode a timestamp in a way that it will be interpreted as an event time if published on a
message with an attribute named PUBSUB_LITE_EVENT_TIME_TIMESTAMP_PROTO.
Parameter
Returns
public static MessageTransformer<PubsubMessage , Message> fromCpsPublishTransformer ( KeyExtractor keyExtractor )
Parameter
Returns
public static MessageTransformer<Message , PubsubMessage> toCpsPublishTransformer ()
Returns
public static MessageTransformer<SequencedMessage , PubsubMessage> toCpsSubscribeTransformer ()
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-05 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-09-05 UTC.",
"confidential": False
}