public abstract class ZlibEncoder extends MessageToByteEncoder<ByteBuf>
ByteBuf
。
ChannelHandler.Sharable
Modifier | Constructor and Description |
---|---|
protected |
ZlibEncoder() |
Modifier and Type | Method and Description |
---|---|
abstract ChannelFuture |
close()
关闭这个 ZlibEncoder ,完成编码。
|
abstract ChannelFuture |
close(ChannelPromise promise)
关闭此 ZlibEncoder 并完成编码。
|
abstract boolean |
isClosed()
当且仅当已达到压缩流的结束时才返回
true 。
|
acceptOutboundMessage, allocateBuffer, encode, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
public abstract boolean isClosed()
true
。
public abstract ChannelFuture close()
ZlibEncoder
并完成编码。
一旦操作完成,返回的ChannelFuture
将会收到通知。
public abstract ChannelFuture close(ChannelPromise promise)
ZlibEncoder
并完成编码。
一旦操作完成,给定的ChannelFuture
将会收到通知,并且还将返回。
Copyright © 2008–2018 The Netty Project. All rights reserved.