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
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 compatable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleDnsCache.Cache<K,V>
static class
SimpleDnsCache.ExpiryEntry<K>
-
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 Static 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()
static <K> java.lang.Object
expiryEntryOrdering()
scala.Option<DnsProtocol.Resolved>
get(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key)
INTERNAL APIvoid
put(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key, DnsProtocol.Resolved records, CachePolicy$CachePolicy ttl)
-
-
-
Method Detail
-
expiryEntryOrdering
public static <K> java.lang.Object expiryEntryOrdering()
-
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 compatable
-
cached
public scala.Option<DnsProtocol.Resolved> cached(DnsProtocol.Resolve request)
-
clock
protected long clock()
-
get
public final scala.Option<DnsProtocol.Resolved> get(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key)
INTERNAL API- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
-
put
public final void put(scala.Tuple2<java.lang.String,DnsProtocol.RequestType> key, DnsProtocol.Resolved records, CachePolicy$CachePolicy ttl)
-
cleanup
public final void cleanup()
- Specified by:
cleanup
in interfacePeriodicCacheCleanup
-
-