public interface PubSubMessageConverter
| Modifier and Type | Method and Description |
|---|---|
Object |
fromPubSubMessage(com.google.pubsub.v1.PubsubMessage message,
Class<?> payloadType)
Convert the payload of a given
PubsubMessage to a desired Java type. |
com.google.pubsub.v1.PubsubMessage |
toPubSubMessage(Object payload,
Map<String,String> headers)
Create a
PubsubMessage given an object for the payload and a map of headers |
com.google.pubsub.v1.PubsubMessage toPubSubMessage(Object payload, Map<String,String> headers)
PubsubMessage given an object for the payload and a map of headerspayload - the object to place into the message payloadheaders - the headers of the messageObject fromPubSubMessage(com.google.pubsub.v1.PubsubMessage message, Class<?> payloadType)
PubsubMessage to a desired Java type.message - the message containing the payload of the objectpayloadType - the desired type of the objectCopyright © 2018 Pivotal Software, Inc.. All rights reserved.