DataInputStream d = new DataInputStream(new ByteArrayInputStream(delivery.getBody()));
d.readInt();
long msgNano = d.readLong();
long nano = System.nanoTime();
Envelope envelope = delivery.getEnvelope();
if (!autoAck) {
if (multiAckEvery == 0) {
channel.basicAck(envelope.getDeliveryTag(), false);
} else if (totalMsgCount % multiAckEvery == 0) {
channel.basicAck(envelope.getDeliveryTag(), true);
}
}
if (txSize != 0 && totalMsgCount % txSize == 0) {
channel.txCommit();
}
now = System.currentTimeMillis();
stats.handleRecv(id.equals(envelope.getRoutingKey()) ? (nano - msgNano) : 0L);
}
} catch (IOException e) {
throw new RuntimeException(e);
} catch (InterruptedException e) {