public class DefaultMessagePropertiesConverter extends Object implements MessagePropertiesConverter
MessagePropertiesConverter
strategy.Constructor and Description |
---|
DefaultMessagePropertiesConverter()
Construct an instance where
LongString s will be returned as a
DataInputStream when longer than 1024 bytes. |
DefaultMessagePropertiesConverter(int longStringLimit)
Construct an instance where
LongString s will be returned 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 as a
DataInputStream
when longer than 1024 bytes.public DefaultMessagePropertiesConverter(int longStringLimit)
LongString
s will be returned as a
DataInputStream
when longer than this limit.longStringLimit
- the limit.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