Class AMQPTunneledCoreMessageWriter
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.proton.AMQPTunneledCoreMessageWriter
- All Implemented Interfaces:
Consumer<org.apache.activemq.artemis.core.server.MessageReference>, MessageWriter
Writer of tunneled Core messages that will be written as the body of an AMQP delivery with a custom message format
that indicates this payload. The writer will encode the bytes from the Core large message file and write them into an
AMQP Delivery that will be sent across to the remote peer where it can be processed and a Core message recreated for
dispatch as if it had been sent from a Core connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteBytes(org.apache.activemq.artemis.core.server.MessageReference messageReference) Begin delivery of a message providing the original message reference instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MessageWriter
accept, close, isWriting, open
-
Constructor Details
-
AMQPTunneledCoreMessageWriter
-
-
Method Details
-
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.
-