public class IdentityPubSubMessageSerDe extends PubSubMessageSerDe
config| Constructor and Description |
|---|
IdentityPubSubMessageSerDe(BulletConfig config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PubSubMessage |
fromMessage(PubSubMessage message)
Takes a converted
PubSubMessage and returns the original format of the message. |
PubSubMessage |
toMessage(PubSubMessage message)
Takes a
PubSubMessage and returns the new format of the message. |
from, toMessagepublic IdentityPubSubMessageSerDe(BulletConfig config)
config - The BulletConfig to configure this class.public PubSubMessage toMessage(PubSubMessage message)
PubSubMessageSerDePubSubMessage and returns the new format of the message. Note that it is allowed to modify the
original message. See PubSubMessageSerDe.fromMessage(PubSubMessage) for the inverse.toMessage in class PubSubMessageSerDemessage - The PubSubMessage to convert.PubSubMessage.public PubSubMessage fromMessage(PubSubMessage message)
PubSubMessageSerDePubSubMessage and returns the original format of the message. Note that it is allowed
to modify the original message. See PubSubMessageSerDe.toMessage(PubSubMessage) for the inverse.fromMessage in class PubSubMessageSerDemessage - The PubSubMessage to revert.PubSubMessage.Copyright © 2021. All rights reserved.