Package io.netty.handler.codec.http2
Interface Http2FrameSizePolicy
- 
- All Known Implementing Classes:
- DefaultHttp2FrameReader,- DefaultHttp2FrameWriter
 
 public interface Http2FrameSizePolicy
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intmaxFrameSize()Gets the maximum allowed frame size.voidmaxFrameSize(int max)Sets the maximum allowed frame size.
 
- 
- 
- 
Method Detail- 
maxFrameSizevoid maxFrameSize(int max) throws Http2ExceptionSets the maximum allowed frame size. Attempts to write frames longer than this maximum will fail.This value is used to represent SETTINGS_MAX_FRAME_SIZE. This method should only be called by Netty (not users) as a result of a receiving a SETTINGSframe.- Throws:
- Http2Exception
 
 - 
maxFrameSizeint maxFrameSize() Gets the maximum allowed frame size.This value is used to represent SETTINGS_MAX_FRAME_SIZE. The initial value defined by the RFC is unlimited but enforcing a lower limit is generally permitted. Http2CodecUtil.DEFAULT_MAX_FRAME_SIZEcan be used as a more conservative default.
 
- 
 
-