Interface Http1CodecConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Http1CodecConfig,Http1CodecConfig.Builder
public interface Http1CodecConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.UInt32ValueThe maximum size of the HTTP1 message body in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum size of the HTTP1 message body in bytes.com.google.protobuf.BoolValueIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.com.google.protobuf.BoolValueOrBuilderIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.booleanThe maximum size of the HTTP1 message body in bytes.booleanIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSingleFrameMode
boolean hasSingleFrameMode()If true, the codec will parse and serialize HTTP1 messages in a single frame per message. A frame is a minimal unit of data that can be processed by the generic proxy. If false, the codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec will output multiple frames for a single HTTP1 message to the generic proxy. If true, the codec will buffer the entire HTTP1 message body before sending it to the generic proxy. This may have better performance in small message scenarios and is more friendly to handle the HTTP1 message body. This also may result in higher memory usage and latency if the message body is large. Default is true.
.google.protobuf.BoolValue single_frame_mode = 1;- Returns:
- Whether the singleFrameMode field is set.
-
getSingleFrameMode
com.google.protobuf.BoolValue getSingleFrameMode()If true, the codec will parse and serialize HTTP1 messages in a single frame per message. A frame is a minimal unit of data that can be processed by the generic proxy. If false, the codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec will output multiple frames for a single HTTP1 message to the generic proxy. If true, the codec will buffer the entire HTTP1 message body before sending it to the generic proxy. This may have better performance in small message scenarios and is more friendly to handle the HTTP1 message body. This also may result in higher memory usage and latency if the message body is large. Default is true.
.google.protobuf.BoolValue single_frame_mode = 1;- Returns:
- The singleFrameMode.
-
getSingleFrameModeOrBuilder
com.google.protobuf.BoolValueOrBuilder getSingleFrameModeOrBuilder()If true, the codec will parse and serialize HTTP1 messages in a single frame per message. A frame is a minimal unit of data that can be processed by the generic proxy. If false, the codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec will output multiple frames for a single HTTP1 message to the generic proxy. If true, the codec will buffer the entire HTTP1 message body before sending it to the generic proxy. This may have better performance in small message scenarios and is more friendly to handle the HTTP1 message body. This also may result in higher memory usage and latency if the message body is large. Default is true.
.google.protobuf.BoolValue single_frame_mode = 1; -
hasMaxBufferSize
boolean hasMaxBufferSize()The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used. This only makes sense when single_frame_mode is true. If the HTTP1 message body size exceeds this value, this will result in a decoding error and the generic proxy will close the connection.
.google.protobuf.UInt32Value max_buffer_size = 2;- Returns:
- Whether the maxBufferSize field is set.
-
getMaxBufferSize
com.google.protobuf.UInt32Value getMaxBufferSize()The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used. This only makes sense when single_frame_mode is true. If the HTTP1 message body size exceeds this value, this will result in a decoding error and the generic proxy will close the connection.
.google.protobuf.UInt32Value max_buffer_size = 2;- Returns:
- The maxBufferSize.
-
getMaxBufferSizeOrBuilder
com.google.protobuf.UInt32ValueOrBuilder getMaxBufferSizeOrBuilder()The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used. This only makes sense when single_frame_mode is true. If the HTTP1 message body size exceeds this value, this will result in a decoding error and the generic proxy will close the connection.
.google.protobuf.UInt32Value max_buffer_size = 2;
-