public class DefaultMessagePropertiesConverter extends Object implements MessagePropertiesConverter
MessagePropertiesConverter strategy.| Constructor and Description |
|---|
DefaultMessagePropertiesConverter()
Construct an instance where
LongStrings will be returned
unconverted when longer than 1024 bytes. |
DefaultMessagePropertiesConverter(int longStringLimit)
Construct an instance where
LongStrings will be returned
unconverted when longer than this limit. |
DefaultMessagePropertiesConverter(int longStringLimit,
boolean convertLongLongStrings)
Construct an instance where
LongStrings will be returned
unconverted or as a DataInputStream when longer than this limit. |
| Modifier and Type | Method and Description |
|---|---|
com.rabbitmq.client.AMQP.BasicProperties |
fromMessageProperties(MessageProperties source,
String charset) |
MessageProperties |
toMessageProperties(com.rabbitmq.client.AMQP.BasicProperties source,
com.rabbitmq.client.Envelope envelope,
String charset) |
public DefaultMessagePropertiesConverter()
LongStrings will be returned
unconverted when longer than 1024 bytes.public DefaultMessagePropertiesConverter(int longStringLimit)
LongStrings will be returned
unconverted when longer than this limit.longStringLimit - the limit.public DefaultMessagePropertiesConverter(int longStringLimit,
boolean convertLongLongStrings)
LongStrings will be returned
unconverted or as a DataInputStream when longer than this limit.
Use this constructor with 'true' to restore pre-1.6 behavior.longStringLimit - the limit.convertLongLongStrings - LongString when false,
DataInputStream when true.public MessageProperties toMessageProperties(com.rabbitmq.client.AMQP.BasicProperties source, com.rabbitmq.client.Envelope envelope, String charset)
toMessageProperties in interface MessagePropertiesConverterpublic com.rabbitmq.client.AMQP.BasicProperties fromMessageProperties(MessageProperties source, String charset)
fromMessageProperties in interface MessagePropertiesConverter