Class ChunkingFilter

All Implemented Interfaces:
Codec<Buffer,Buffer>, CodecFilter<Buffer,Buffer>, Filter

public class ChunkingFilter extends AbstractCodecFilter<Buffer,Buffer>
The Filter is responsible to break the incoming/outgoing data into chunks and pass them down/up by the FilterChain. This Filter could be useful for testing reasons to check if all Filters in the FilterChain work properly with chunked data.
Author:
Alexey Stashok
  • Constructor Details

    • ChunkingFilter

      public ChunkingFilter(int chunkSize)
      Construct a ChunkFilter, which will break incoming/outgoing data into chunks of the specified size.
      Parameters:
      chunkSize - the chunk size.
  • Method Details

    • getChunkSize

      public int getChunkSize()