| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final TimeUnit | |
| private Compressor | |
| private final Supplier | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | CompressionHandler(Supplier<? extends Compressor>
the compressorSupplier)Supplier that is used to create the Compressor.Creates a new instance. |
| public | CompressionHandler(Supplier<? extends Compressor>
the compressorSupplier, long Supplier that is used to create the Compressor.the amount to wait before we will close even tho the write of the trailer was
not finished yet. closeWriteTimeout, TimeUnit the unit of the timeout. closeWriteTimeoutUnit, boolean true if the bytes should be discarded after the Compressor
finished the compression of the whole stream.Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | channelInactive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime.
|
| public Future | close(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the close operation is madeOverrides default io. |
| private void | |
| private Future | |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was removed from the actual context and it doesn't handle events
anymore.
|
| public Future | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg)Overrides default io. |
| closeWriteTimeout | back to summary |
|---|---|
| private final long closeWriteTimeout | |
| closeWriteTimeoutUnit | back to summary |
|---|---|
| private final TimeUnit closeWriteTimeoutUnit | |
| compressor | back to summary |
|---|---|
| private Compressor compressor | |
| compressorSupplier | back to summary |
|---|---|
| private final Supplier<? extends Compressor> compressorSupplier | |
| discardBytesAfterFinished | back to summary |
|---|---|
| private final boolean discardBytesAfterFinished | |
| CompressionHandler | back to summary |
|---|---|
| public CompressionHandler(Supplier<? extends Compressor> compressorSupplier) Creates a new instance.
| |
| CompressionHandler | back to summary |
|---|---|
| public CompressionHandler(Supplier<? extends Compressor> compressorSupplier, long closeWriteTimeout, TimeUnit closeWriteTimeoutUnit, boolean discardBytesAfterFinished) Creates a new instance.
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| close | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a close operation is made.
| |
| closeCompressor | back to summary |
|---|---|
| private void closeCompressor() | |
| finish | back to summary |
|---|---|
| private Future | |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| write | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |