public class AmqpJmsBytesMessageFacade extends AmqpJmsMessageFacade implements JmsBytesMessageFacade
connection, message
Constructor and Description |
---|
AmqpJmsBytesMessageFacade(AmqpConnection connection)
Creates a new facade instance
|
AmqpJmsBytesMessageFacade(AmqpConsumer consumer,
org.apache.qpid.proton.message.Message message)
Creates a new Facade around an incoming AMQP Message for dispatch to the
JMS Consumer instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBody()
Clears the contents of this Message.
|
AmqpJmsBytesMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
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.
|
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, getAmqpMessage, getAmqpTimeToLiveOverride, getApplicationProperty, getApplicationPropertyNames, getConnection, getContentType, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getReplyToGroupId, getTimestamp, getType, getUserId, hasAmqpTimeToLiveOverride, isPersistent, isRedelivered, onDispatch, propertyExists, setAmqpTimeToLiveOverride, setApplicationProperty, setContentType, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setReplyToGroupId, setTimestamp, setType, setUserId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, isPersistent, isRedelivered, onDispatch, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId
public AmqpJmsBytesMessageFacade(AmqpConnection connection)
connection
- the AmqpConnection that under which this facade was created.public AmqpJmsBytesMessageFacade(AmqpConsumer consumer, org.apache.qpid.proton.message.Message message)
consumer
- the consumer that received this message.message
- the incoming Message instance that is being wrapped.public AmqpJmsBytesMessageFacade copy()
JmsMessageFacade
copy
in interface JmsBytesMessageFacade
copy
in interface JmsMessageFacade
copy
in class AmqpJmsMessageFacade
public byte getJmsMsgType()
getJmsMsgType
in class AmqpJmsMessageFacade
public void clearBody()
JmsMessageFacade
clearBody
in interface JmsMessageFacade
clearBody
in class AmqpJmsMessageFacade
public InputStream getInputStream() throws javax.jms.JMSException
JmsBytesMessageFacade
getInputStream
in interface JmsBytesMessageFacade
javax.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
JmsBytesMessageFacade
getOutputStream
in interface JmsBytesMessageFacade
javax.jms.JMSException
- if an error occurs creating the stream.javax.jms.IllegalStateException
- if there is a current OutputStream in use.public void reset()
JmsBytesMessageFacade
reset
in interface JmsBytesMessageFacade
public int getBodyLength()
getBodyLength
in interface JmsBytesMessageFacade
public void onSend(long producerTtl) throws javax.jms.JMSException
JmsMessageFacade
onSend
in interface JmsMessageFacade
onSend
in class AmqpJmsMessageFacade
producerTtl
- 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–2015 The Apache Software Foundation. All rights reserved.