public class PubsubMessage extends Object
| Constructor and Description |
|---|
PubsubMessage(byte[] payload,
Map<String,String> attributes) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attribute)
Returns the given attribute value.
|
Map<String,String> |
getAttributeMap()
Returns the full map of attributes.
|
byte[] |
getPayload()
Returns the main PubSub message.
|
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.