ARTEMIS-2789 AMQP Large Message Memory Estimate
This commit is contained in:
parent
ffa6d20321
commit
111b551d79
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue