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;
}
Aggregations