public interface MessageCloner<E>
AsyncQueueWriter, when message could not be written directly, and will be
added to the queue. Cloner may create a clone of original message and return it to the AsyncQueueWriter
instead of original one. Using MessageCloner, developer has a chance to clone a message only in case, when it is
really required.| Modifier and Type | Method and Description |
|---|---|
E |
clone(Connection connection,
E originalMessage)
Method will be called by
AsyncQueueWriter, when message could not be written directly, and will be added to
the queue. |
E clone(Connection connection, E originalMessage)
AsyncQueueWriter, when message could not be written directly, and will be added to
the queue. Cloner may create a clone of original message and return it to the AsyncQueueWriter instead of
original one. Using MessageCloner, developer has a chance to clone a message only in case, when it is really
required.connection - Connection, where the Buffer will be written.originalMessage - Buffer to be written.Buffer or its clone to be added to asynchronous queue.Copyright © 2017–2020 Oracle Corporation. All rights reserved.