public interface MessageFactory
Message objects.| Modifier and Type | Method and Description |
|---|---|
BytesMessage |
createBytesMessage(String queue,
byte[] body)
Creates a
BytesMessage object. |
BytesMessage createBytesMessage(String queue, byte[] body)
BytesMessage object. A BytesMessage object is used to send a message containing a
stream of uninterpreted bytes.
The returned BytesMessage object only can be sent to the specified queue.
queue - the target queue to sendbody - the body data for a messageBytesMessage objectOMSRuntimeException - if the OMS provider fails to create this message due to some internal error.Copyright © 2017–2018 OpenMessaging. All rights reserved.