@Beta public class MessageMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageMetadata.Builder
A builder class to fluently generate an instance of
MessageMetadata . |
Constructor and Description |
---|
MessageMetadata(String topic,
List<KeyProperty> keys)
Represents metadata about a message and provides access to the message topic and the keys of the entity that this
message refers to.
|
Modifier and Type | Method and Description |
---|---|
static MessageMetadata.Builder |
builder()
Creates a builder that can be used to fluently create an instance of
MessageMetadata . |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<KeyProperty> |
getKeys()
Returns a
List of specifications of the keys that are contained in a message payload. |
String |
getTopic()
Returns the topic of the particular message.
|
int |
hashCode() |
String |
toString() |
public MessageMetadata(@Nonnull String topic, @Nonnull List<KeyProperty> keys)
topic
- The topic of this messagekeys
- A List of key specifications.@Nonnull public String getTopic()
@Nonnull public List<KeyProperty> getKeys()
List
of specifications of the keys that are contained in a message payload.
Based on these specifications the generator creates additional getter methods in the message implementation.
List
of key specifications.@Nonnull public static MessageMetadata.Builder builder()
MessageMetadata
.MessageMetadata.Builder
.protected boolean canEqual(Object other)
Copyright © 2019 SAP SE. All rights reserved.