public class AmqpJmsStreamMessageFacade extends AmqpJmsMessageFacade implements JmsStreamMessageFacade
connection, message
Constructor and Description |
---|
AmqpJmsStreamMessageFacade(AmqpConnection connection)
Create a new facade ready for sending.
|
AmqpJmsStreamMessageFacade(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.
|
AmqpJmsStreamMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
byte |
getJmsMsgType() |
boolean |
hasNext() |
Object |
peek()
Peek and return the next element in the stream.
|
void |
pop()
Pops the next element in the stream.
|
void |
put(Object value)
Writes a new object value to the stream.
|
void |
reset()
Reset the position of the stream to the beginning.
|
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, onSend, 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, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId
public AmqpJmsStreamMessageFacade(AmqpConnection connection)
connection
- the AmqpConnection that under which this facade was created.public AmqpJmsStreamMessageFacade(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 AmqpJmsStreamMessageFacade copy()
JmsMessageFacade
copy
in interface JmsMessageFacade
copy
in interface JmsStreamMessageFacade
copy
in class AmqpJmsMessageFacade
public byte getJmsMsgType()
getJmsMsgType
in class AmqpJmsMessageFacade
public boolean hasNext()
hasNext
in interface JmsStreamMessageFacade
public Object peek() throws javax.jms.MessageEOFException
JmsStreamMessageFacade
peek
in interface JmsStreamMessageFacade
javax.jms.MessageEOFException
- if end of message stream has been reached.public void pop() throws javax.jms.MessageEOFException
JmsStreamMessageFacade
pop
in interface JmsStreamMessageFacade
javax.jms.MessageEOFException
- if end of message stream has been reached.public void put(Object value)
JmsStreamMessageFacade
put
in interface JmsStreamMessageFacade
value
- The object value to be written to the stream.public void reset()
JmsStreamMessageFacade
reset
in interface JmsStreamMessageFacade
public void clearBody()
JmsMessageFacade
clearBody
in interface JmsMessageFacade
clearBody
in class AmqpJmsMessageFacade
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.