mirror of https://github.com/apache/activemq.git
[AMQ-8412] - Add some comments for maxFrameSizeEnabled
This commit is contained in:
parent
fb036974ca
commit
19949e36bc
|
@ -621,6 +621,12 @@ public final class OpenWireFormat implements WireFormat {
|
|||
return maxFrameSizeEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether the maxFrameSize check will be enabled. Note this is only applied to this format
|
||||
* and will NOT be negotiated
|
||||
*
|
||||
* @param maxFrameSizeEnabled
|
||||
*/
|
||||
public void setMaxFrameSizeEnabled(boolean maxFrameSizeEnabled) {
|
||||
this.maxFrameSizeEnabled = maxFrameSizeEnabled;
|
||||
}
|
||||
|
@ -636,6 +642,7 @@ public final class OpenWireFormat implements WireFormat {
|
|||
|
||||
this.setMaxFrameSize(min(preferedWireFormatInfo.getMaxFrameSize(), info.getMaxFrameSize()));
|
||||
info.setMaxFrameSize(this.getMaxFrameSize());
|
||||
//Note: Don't negotiate maxFrameSizeEnabled so the client and server can set independently
|
||||
|
||||
this.stackTraceEnabled = info.isStackTraceEnabled() && preferedWireFormatInfo.isStackTraceEnabled();
|
||||
info.setStackTraceEnabled(this.stackTraceEnabled);
|
||||
|
|
|
@ -207,6 +207,12 @@ public class OpenWireFormatFactory implements WireFormatFactory {
|
|||
this.includePlatformDetails = includePlatformDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether the maxFrameSize check will be enabled. Note this is only applied to this factory
|
||||
* and will NOT be negotiated
|
||||
*
|
||||
* @param maxFrameSizeEnabled
|
||||
*/
|
||||
public void setMaxFrameSizeEnabled(boolean maxFrameSizeEnabled) {
|
||||
this.maxFrameSizeEnabled = maxFrameSizeEnabled;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue