public interface MessageFactory
Message
objects.Modifier and Type | Method and Description |
---|---|
Message |
createMessage(String queueName,
byte[] body)
Creates a
Message object. |
Message createMessage(String queueName, byte[] body)
Message
object. A Message
object is used to send a message containing a stream of
uninterpreted bytes.
The returned Message
object only can be sent to the specified queue.
queueName
- the target queue to sendbody
- the body data for a messageMessage
objectOMSMessageFormatException
- when body exceed the maximum length or others.Copyright © 2017–2020 OpenMessaging. All rights reserved.