public class AmqpJmsBytesMessageFacade extends AmqpJmsMessageFacade implements JmsBytesMessageFacade
connection| Constructor and Description |
|---|
AmqpJmsBytesMessageFacade() |
| Modifier and Type | Method and Description |
|---|---|
JmsBytesMessage |
asJmsMessage() |
void |
clearBody()
Clears the contents of this Message.
|
AmqpJmsBytesMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
byte[] |
copyBody() |
int |
getBodyLength() |
InputStream |
getInputStream()
Create and return an InputStream instance that can be used to read the contents
of this message.
|
byte |
getJmsMsgType() |
OutputStream |
getOutputStream()
Create and return a new OuputStream used to populate the body of the message.
|
boolean |
hasBody()
Returns true if the underlying message has a body, false if the body is empty.
|
protected void |
initializeEmptyBody()
Used to indicate that a Message object should empty the body element and make
any other internal updates to reflect the message now has no body value.
|
void |
onSend(long producerTtl)
Called before a message is sent to allow a Message instance to move the
contents from a logical data structure to a binary form for transmission, or
other processing such as setting proper message headers etc.
|
void |
reset()
Reset the message state such that a call to getInputStream or getOutputStream
will succeed.
|
applicationPropertyExists, clearProperties, copyInto, encodeMessage, filterTracingAnnotations, getAmqpTimeToLiveOverride, getApplicationProperty, getApplicationPropertyNames, getContentType, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getReplyToGroupId, getTimestamp, getTracingAnnotation, getTracingContext, getType, getUserId, getUserIdBytes, hasAmqpTimeToLiveOverride, initialize, initialize, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, propertyExists, removeTracingAnnotation, removeTracingContext, setAmqpTimeToLiveOverride, setApplicationProperty, setContentType, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setReplyToGroupId, setTimestamp, setTracingAnnotation, setTracingContext, setType, setUserId, setUserIdBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, encodeMessage, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytesfilterTracingAnnotations, getTracingAnnotation, getTracingContext, removeTracingAnnotation, removeTracingContext, setTracingAnnotation, setTracingContextprotected void initializeEmptyBody()
AmqpJmsMessageFacadeinitializeEmptyBody in class AmqpJmsMessageFacadepublic AmqpJmsBytesMessageFacade copy()
JmsMessageFacadecopy in interface JmsBytesMessageFacadecopy in interface JmsMessageFacadecopy in class AmqpJmsMessageFacadepublic byte getJmsMsgType()
getJmsMsgType in class AmqpJmsMessageFacadepublic void clearBody()
JmsMessageFacadeclearBody in interface JmsMessageFacadeclearBody in class AmqpJmsMessageFacadepublic InputStream getInputStream() throws javax.jms.JMSException
JmsBytesMessageFacadegetInputStream in interface JmsBytesMessageFacadejavax.jms.JMSException - if an error occurs creating the stream.javax.jms.IllegalStateException - if there is a current OutputStream in use.public OutputStream getOutputStream() throws javax.jms.JMSException
JmsBytesMessageFacadegetOutputStream in interface JmsBytesMessageFacadejavax.jms.JMSException - if an error occurs creating the stream.javax.jms.IllegalStateException - if there is a current OutputStream in use.public void reset()
JmsBytesMessageFacadereset in interface JmsBytesMessageFacadepublic int getBodyLength()
getBodyLength in interface JmsBytesMessageFacadepublic boolean hasBody()
JmsMessageFacadehasBody in interface JmsMessageFacadehasBody in class AmqpJmsMessageFacadepublic JmsBytesMessage asJmsMessage()
asJmsMessage in class AmqpJmsMessageFacadepublic byte[] copyBody()
copyBody in interface JmsBytesMessageFacadepublic void onSend(long producerTtl)
throws javax.jms.JMSException
JmsMessageFacadeonSend in interface JmsMessageFacadeonSend in class AmqpJmsMessageFacadeproducerTtl - the time to live value configured on the producer when sent.javax.jms.JMSException - if an error occurs while preparing the message for send.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.