Package akka.io.dns.internal
Class AsyncDnsCache
- java.lang.Object
-
- akka.io.Dns
-
- akka.io.dns.internal.AsyncDnsCache
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,PeriodicCacheCleanup
public class AsyncDnsCache extends Dns implements PeriodicCacheCleanup, NoSerializationVerificationNeeded
Gets any IPv4 and IPv6 cached entries. To get Srv or just one type use DnsProtocol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.io.Dns
Dns.Command, Dns.Resolve, Dns.Resolve$, Dns.Resolved, Dns.Resolved$
-
-
Constructor Summary
Constructors Constructor Description AsyncDnsCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.Option<Dns.Resolved>
cached(java.lang.String name)
Gets any IPv4 and IPv6 cached entries.void
cleanup()
protected long
clock()
scala.Option<DnsProtocol.Resolved>
get(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key)
void
put(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key, DnsProtocol.Resolved records, CachePolicy$CachePolicy ttl)
-
-
-
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 DnsProtocol
-
cleanup
public final void cleanup()
- Specified by:
cleanup
in interfacePeriodicCacheCleanup
-
clock
protected long clock()
-
get
public final scala.Option<DnsProtocol.Resolved> get(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key)
-
put
public final void put(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key, DnsProtocol.Resolved records, CachePolicy$CachePolicy ttl)
-
-