Package akka.io
Class SimpleDnsCache
- java.lang.Object
-
- akka.io.Dns
-
- akka.io.SimpleDnsCache
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,PeriodicCacheCleanup
public class SimpleDnsCache extends Dns implements PeriodicCacheCleanup, NoSerializationVerificationNeeded
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleDnsCache.CacheEntry$
-
Nested classes/interfaces inherited from class akka.io.Dns
Dns.Command, Dns.Resolve, Dns.Resolve$, Dns.Resolved, Dns.Resolved$
-
-
Constructor Summary
Constructors Constructor Description SimpleDnsCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.Option<DnsProtocol.Resolved>
cached(DnsProtocol.Resolve request)
scala.Option<Dns.Resolved>
cached(java.lang.String name)
Gets any IPv4 and IPv6 cached entries.void
cleanup()
protected long
clock()
-
-
-
Method Detail
-
cached
public scala.Option<Dns.Resolved> cached(java.lang.String name)
Gets any IPv4 and IPv6 cached entries. To get Srv or just one type use DnsProtocolThis method is deprecated and involves a copy from the new protocol to remain compatible
-
cached
public scala.Option<DnsProtocol.Resolved> cached(DnsProtocol.Resolve request)
-
clock
protected long clock()
-
cleanup
public final void cleanup()
- Specified by:
cleanup
in interfacePeriodicCacheCleanup
-
-