Search in sources :

Example 1 with SessionReceiveLargeMessage

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;
}
Also used : Packet(org.apache.activemq.artemis.core.protocol.core.Packet) SessionReceiveLargeMessage(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionReceiveLargeMessage)

Aggregations

Packet (org.apache.activemq.artemis.core.protocol.core.Packet)1 SessionReceiveLargeMessage (org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionReceiveLargeMessage)1