Example usage for io.netty.handler.codec.dns DnsRecordType name

List of usage examples for io.netty.handler.codec.dns DnsRecordType name

Introduction

In this page you can find the example usage for io.netty.handler.codec.dns DnsRecordType name.

Prototype

String name

To view the source code for io.netty.handler.codec.dns DnsRecordType name.

Click Source Link

Usage

From source file:com.linecorp.armeria.client.endpoint.dns.DnsEndpointGroup.java

License:Apache License

/**
 * Logs a warning message about an invalid record.
 *///from  ww  w  . j  a  v  a2 s.c  o  m
final void warnInvalidRecord(DnsRecordType type, ByteBuf content) {
    if (logger().isWarnEnabled()) {
        final String dump = ByteBufUtil.hexDump(content);
        logger().warn("{} Skipping invalid {} record: {}", logPrefix(), type.name(),
                dump.isEmpty() ? "<empty>" : dump);
    }
}