Serializer instead@Deprecated public class RabbitMQHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.gson.Gson |
gson
Deprecated.
|
private static org.slf4j.Logger |
LOGGER
Deprecated.
|
| Constructor and Description |
|---|
RabbitMQHelper()
Deprecated.
|
RabbitMQHelper(com.google.gson.Gson gson)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
parseObject(byte[] data)
Deprecated.
A method for deserializing an object that has been serialized using the
writeObject(Object) method. |
byte[] |
writeObject(Object o)
Deprecated.
Serializes the given object by creating a byte array with the following
content:
length of class name
class name of the given object
length of JSON representation
the given object as JSON
|
private static final org.slf4j.Logger LOGGER
private final com.google.gson.Gson gson
public RabbitMQHelper()
public RabbitMQHelper(com.google.gson.Gson gson)
public byte[] writeObject(Object o)
o - the object that should be serializedpublic Object parseObject(byte[] data)
writeObject(Object) method.data - the serialized representation of the object generated by the
WritableObjectId methodCopyright © 2017–2019. All rights reserved.