Package akka.io
Class SimpleDnsCache
- java.lang.Object
-
- akka.io.Dns
-
- akka.io.SimpleDnsCache
-
- All Implemented Interfaces:
PeriodicCacheCleanup
public class SimpleDnsCache extends Dns implements PeriodicCacheCleanup
-
-
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<Dns.Resolved>
cached(java.lang.String name)
void
cleanup()
protected long
clock()
static <K> java.lang.Object
expiryEntryOrdering()
void
put(Dns.Resolved r, CachePolicy$CachePolicy ttl)
-
-
-
Method Detail
-
expiryEntryOrdering
public static <K> java.lang.Object expiryEntryOrdering()
-
cached
public scala.Option<Dns.Resolved> cached(java.lang.String name)
-
clock
protected long clock()
-
put
public final void put(Dns.Resolved r, CachePolicy$CachePolicy ttl)
-
cleanup
public final void cleanup()
- Specified by:
cleanup
in interfacePeriodicCacheCleanup
-
-