1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty5.resolver.dns;
17
18 import io.netty5.channel.EventLoop;
19
20 import java.net.InetSocketAddress;
21
22
23
24
25 public final class NoopAuthoritativeDnsServerCache implements AuthoritativeDnsServerCache {
26 public static final NoopAuthoritativeDnsServerCache INSTANCE = new NoopAuthoritativeDnsServerCache();
27
28 private NoopAuthoritativeDnsServerCache() { }
29
30 @Override
31 public DnsServerAddressStream get(String hostname) {
32 return null;
33 }
34
35 @Override
36 public void cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) {
37
38 }
39
40 @Override
41 public void clear() {
42
43 }
44
45 @Override
46 public boolean clear(String hostname) {
47 return false;
48 }
49 }