Package io.activej.csp.process.frames
Class LZ4FrameFormat
java.lang.Object
io.activej.csp.process.frames.LZ4FrameFormat
- All Implemented Interfaces:
io.activej.common.initializer.WithInitializer<LZ4FrameFormat>,FrameFormat
public final class LZ4FrameFormat
extends Object
implements FrameFormat, io.activej.common.initializer.WithInitializer<LZ4FrameFormat>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LZ4FrameFormatcreate()static LZ4FrameFormatcreate(net.jpountz.lz4.LZ4Factory factory) Creates a decoder which decodes data encoded byBlockEncoderCreates an encoder which transforms input bufs into bufs of encoded datawithCompressionLevel(int compressionLevel) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.common.initializer.WithInitializer
withInitializer
-
Field Details
-
MAX_BLOCK_SIZE
public static final io.activej.common.MemSize MAX_BLOCK_SIZE
-
-
Method Details
-
create
-
create
-
withHighCompression
-
withCompressionLevel
-
createEncoder
Description copied from interface:FrameFormatCreates an encoder which transforms input bufs into bufs of encoded data- Specified by:
createEncoderin interfaceFrameFormat- Returns:
- block encoder
-
createDecoder
Description copied from interface:FrameFormatCreates a decoder which decodes data encoded byBlockEncoder- Specified by:
createDecoderin interfaceFrameFormat- Returns:
- block decoder
-