public class DefaultMessagePropertiesConverter extends Object implements MessagePropertiesConverter
MessagePropertiesConverter
strategy.Constructor and Description |
---|
DefaultMessagePropertiesConverter()
Construct an instance where
LongString s will be returned
unconverted when longer than 1024 bytes. |
DefaultMessagePropertiesConverter(int longStringLimit)
Construct an instance where
LongString s will be returned
unconverted when longer than this limit. |
DefaultMessagePropertiesConverter(int longStringLimit,
boolean convertLongLongStrings)
Construct an instance where
LongString s 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()
LongString
s will be returned
unconverted when longer than 1024 bytes.public DefaultMessagePropertiesConverter(int longStringLimit)
LongString
s will be returned
unconverted when longer than this limit.longStringLimit
- the limit.public DefaultMessagePropertiesConverter(int longStringLimit, boolean convertLongLongStrings)
LongString
s 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 MessagePropertiesConverter
public com.rabbitmq.client.AMQP.BasicProperties fromMessageProperties(MessageProperties source, String charset)
fromMessageProperties
in interface MessagePropertiesConverter