Class ChannelTransformers
java.lang.Object
io.activej.csp.process.transformer.ChannelTransformers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> chunkBytes(io.activej.common.MemSize minChunkSize, io.activej.common.MemSize maxChunkSize) static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> dropBytes(long toDrop) static <T> ChannelTransformer<T,T> identity()static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> limitBytes(long limit) static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> rangeBytes(long offset, long length)
-
Constructor Details
-
ChannelTransformers
public ChannelTransformers()
-
-
Method Details
-
identity
-
chunkBytes
public static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> chunkBytes(io.activej.common.MemSize minChunkSize, io.activej.common.MemSize maxChunkSize) -
rangeBytes
public static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> rangeBytes(long offset, long length) -
dropBytes
public static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> dropBytes(long toDrop) -
limitBytes
public static ChannelTransformer<io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf> limitBytes(long limit)
-