@FunctionalInterface public interface CodecRegistrar extends Extension
Codecs as extension to built-in codecs.
This will be registered before the connection is established.
| Modifier and Type | Method and Description |
|---|---|
void |
register(io.netty.buffer.ByteBufAllocator allocator,
CodecRegistry registry)
Register codec(s) into a
CodecRegistry of the connection. |
void register(io.netty.buffer.ByteBufAllocator allocator,
CodecRegistry registry)
CodecRegistry of the connection.allocator - a ByteBufAllocator for allocate ByteBuf, non null.registry - the CodecRegistry, it can register multiple codecs, non null.Copyright © 2018–2023 asyncer.io. All rights reserved.