public class BuiltinDynamicCodecs extends Object implements CodecRegistrar
CodecRegistrar
to register built-in codecs depending on their availability in pg_type
.Constructor and Description |
---|
BuiltinDynamicCodecs() |
Modifier and Type | Method and Description |
---|---|
Publisher<Void> |
register(PostgresqlConnection connection,
io.netty.buffer.ByteBufAllocator byteBufAllocator,
CodecRegistry registry)
Register
Codec into CodecRegistry . |
public Publisher<Void> register(PostgresqlConnection connection, io.netty.buffer.ByteBufAllocator byteBufAllocator, CodecRegistry registry)
CodecRegistrar
Codec
into CodecRegistry
.
Codecs should be registered using a deferred approach upon subscription
.register
in interface CodecRegistrar
connection
- the connection to query the connected Postgres runtime instancebyteBufAllocator
- the allocator for buffer allocationregistry
- target codec registry that accepts codec registrationsPublisher
that activates codec registration upon subscriptionCopyright © 2020. All rights reserved.