ARTEMIS-2789 AMQP Large Message Memory Estimate

This commit is contained in:
Clebert Suconic 2020-06-03 15:50:01 -04:00
parent ffa6d20321
commit 111b551d79
1 changed files with 5 additions and 1 deletions

View File

@ -374,9 +374,13 @@ public class AMQPLargeMessage extends AMQPMessage implements LargeServerMessage
return 0;
}
@Override
public int getMemoryEstimate() {
return 0;
if (memoryEstimate == -1) {
memoryEstimate = memoryOffset * 2 + (extraProperties != null ? extraProperties.getEncodeSize() : 0);
}
return memoryEstimate;
}
@Override