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, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic 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.