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 Type
    Method
    Description
    com.google.protobuf.UInt32Value
    The maximum size of the HTTP1 message body in bytes.
    com.google.protobuf.UInt32ValueOrBuilder
    The maximum size of the HTTP1 message body in bytes.
    com.google.protobuf.BoolValue
    If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
    com.google.protobuf.BoolValueOrBuilder
    If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
    boolean
    The maximum size of the HTTP1 message body in bytes.
    boolean
    If true, the codec will parse and serialize HTTP1 messages in a single frame per message.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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;