public final class SerdeMessage extends Object
BytesMessage.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deserialize(com.solace.serdes.Deserializer<T> deserializer,
BytesXMLMessage message)
|
static <T> T |
deserialize(com.solace.serdes.Deserializer<T> deserializer,
Destination destination,
BytesXMLMessage message)
|
static <T> void |
serialize(com.solace.serdes.Serializer<T> serializer,
BytesXMLMessage message,
T data)
Serialize an object of type T using a
Serializer into a jcsmp BytesMessage. |
static <T> void |
serialize(com.solace.serdes.Serializer<T> serializer,
Destination destination,
BytesXMLMessage message,
T data)
Serialize an object of type T using a
Serializer into a jcsmp BytesMessage. |
public static <T> void serialize(com.solace.serdes.Serializer<T> serializer,
BytesXMLMessage message,
T data)
Serializer into a jcsmp BytesMessage.
This will modify the binary attachment of the message when successful.
This may modify the user properties of the message depending on the serializer.T - The generic type parameter for the methodserializer - The Serializer of type T to process the user properties and payload of the message into an object.message - The Bytes message to serialize. Must have a Destination set.data - Object to serialize into the message.com.solace.serdes.SerializationException - when serializer can not encode the message.IllegalArgumentException - when parameters can not be used for serialization.public static <T> void serialize(com.solace.serdes.Serializer<T> serializer,
Destination destination,
BytesXMLMessage message,
T data)
Serializer into a jcsmp BytesMessage.
This will modify the binary attachment of the message when successful.
This may modify the user properties of the message depending on the serializer.T - The generic type parameter for the methodserializer - The Serializer of type T to process the user properties and payload of the message into an object.message - The Bytes message to serialize.destination - The Solace destination.data - Object to serialize into the message.com.solace.serdes.SerializationException - when serializer can not encode the message.IllegalArgumentException - when parameters can not be used for serialization.public static <T> T deserialize(com.solace.serdes.Deserializer<T> deserializer,
BytesXMLMessage message)
T - The generic type parameter for the methoddeserializer - The Deserializer of type T to process the user properties and payload of the message into an object.message - The Bytes message to deserialize. Must have a Destination set.com.solace.serdes.SerializationException - when deserializer can not decode the message.public static <T> T deserialize(com.solace.serdes.Deserializer<T> deserializer,
Destination destination,
BytesXMLMessage message)
T - The generic type parameter for the methoddeserializer - The Deserializer of type T to process the user properties and payload of the message into an object.destination - the Solace destination.message - The Bytes message to deserialize.com.solace.serdes.SerializationException - when deserializer can not decode the message.Copyright 2004-2025 Solace Corporation. All rights reserved.