use of org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionReceiveLargeMessage in project activemq-artemis by apache.
the class CoreSessionCallback method sendLargeMessage.
@Override
public int sendLargeMessage(MessageReference ref, Message message, ServerConsumer consumer, long bodySize, int deliveryCount) {
Packet packet = new SessionReceiveLargeMessage(consumer.getID(), message, bodySize, deliveryCount);
channel.send(packet);
int size = packet.getPacketSize();
return size;
}
Aggregations