public final class BufferDecoderGroupBuilder
extends Object
BufferDecoderGroups.| Constructor and Description |
|---|
BufferDecoderGroupBuilder()
Create a new instance.
|
BufferDecoderGroupBuilder(int decodersSizeEstimate)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BufferDecoderGroupBuilder |
add(BufferDecoder decoder)
Add a new
BufferDecoder to the BufferDecoderGroup built by this builder. |
BufferDecoderGroupBuilder |
add(BufferDecoder decoder,
boolean advertised)
Add a new
BufferDecoder to the BufferDecoderGroup built by this builder. |
BufferDecoderGroup |
build()
Build a new
BufferDecoderGroup. |
public BufferDecoderGroupBuilder()
public BufferDecoderGroupBuilder(int decodersSizeEstimate)
decodersSizeEstimate - estimate as to how many BufferDecoder will be included in the
BufferDecoderGroup built by this builder.public BufferDecoderGroupBuilder add(BufferDecoder decoder)
BufferDecoder to the BufferDecoderGroup built by this builder.decoder - The decoder to add.this.public BufferDecoderGroupBuilder add(BufferDecoder decoder, boolean advertised)
BufferDecoder to the BufferDecoderGroup built by this builder.decoder - The decoder to add.advertised - true - the decoder should be included in
BufferDecoderGroup.advertisedMessageEncoding()false -the decoder is excluded from
BufferDecoderGroup.advertisedMessageEncoding() and therefore won't be included in
Accept-Encoding (or equivalent) metadata headers. In this case the peer won't be explicitly be told
this decoder is supported. Commonly used to discourage usage of identity decoders in favor of other
more preferred options, but still support it as a fallback if there are no common decoders.this.public BufferDecoderGroup build()
BufferDecoderGroup.BufferDecoderGroup.