Search in sources :

Example 1 with SessionSendMessage_1X

use of org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionSendMessage_1X in project activemq-artemis by apache.

the class ServerPacketDecoder method decodeSessionSendMessage.

private SessionSendMessage decodeSessionSendMessage(final ActiveMQBuffer in, CoreRemotingConnection connection) {
    final SessionSendMessage sendMessage;
    if (connection.isVersionBeforeAddressChange()) {
        sendMessage = new SessionSendMessage_1X(new CoreMessage(this.coreMessageObjectPools));
    } else {
        sendMessage = new SessionSendMessage(new CoreMessage(this.coreMessageObjectPools));
    }
    sendMessage.decode(in);
    return sendMessage;
}
Also used : SessionSendMessage_1X(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionSendMessage_1X) SessionSendMessage(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionSendMessage) CoreMessage(org.apache.activemq.artemis.core.message.impl.CoreMessage)

Aggregations

CoreMessage (org.apache.activemq.artemis.core.message.impl.CoreMessage)1 SessionSendMessage (org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionSendMessage)1 SessionSendMessage_1X (org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionSendMessage_1X)1