This commit is contained in:
Clebert Suconic 2020-06-03 23:23:16 -04:00
commit ee4a193b4e
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