Class AMQPMessageWriter
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.proton.AMQPMessageWriter
-
- All Implemented Interfaces:
Consumer<org.apache.activemq.artemis.core.server.MessageReference>,MessageWriter
public class AMQPMessageWriter extends Object implements MessageWriter
An writer of AMQP (non-large) messages or messages which will convert any non-AMQP message to AMQP before writing the encoded bytes into the AMQP sender.
-
-
Constructor Summary
Constructors Constructor Description AMQPMessageWriter(ProtonServerSenderContext serverSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteBytes(org.apache.activemq.artemis.core.server.MessageReference messageReference)Begin delivery of a message providing the original message reference instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.protocol.amqp.proton.MessageWriter
accept, close, isWriting, open
-
-
-
-
Constructor Detail
-
AMQPMessageWriter
public AMQPMessageWriter(ProtonServerSenderContext serverSender)
-
-
Method Detail
-
writeBytes
public void writeBytes(org.apache.activemq.artemis.core.server.MessageReference messageReference)
Description copied from interface:MessageWriterBegin delivery of a message providing the original message reference instance. The writer should be linked to a parent sender or sender controller which it will use for obtaining services needed to send and complete sending operations. This must be called from the connection thread.Once delivery processing completes (successful or not) the handler must inform the server sender of the outcome so that further deliveries can be sent or error processing can commence.
- Specified by:
writeBytesin interfaceMessageWriter- Parameters:
messageReference- The original message reference that triggered the delivery.
-
-