Package akka.io
Class SimpleDnsCache.Cache<K,V>
- java.lang.Object
-
- akka.io.SimpleDnsCache.Cache<K,V>
-
- Enclosing class:
- SimpleDnsCache
public static class SimpleDnsCache.Cache<K,V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Cache(scala.collection.immutable.SortedSet<SimpleDnsCache.ExpiryEntry<K>> queue, scala.collection.immutable.Map<K,<any>> cache, scala.Function0<java.lang.Object> clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleDnsCache.Cache<K,V>
cleanup()
scala.Option<V>
get(K name)
SimpleDnsCache.Cache<K,V>
put(K name, V answer, CachePolicy$CachePolicy ttl)
-
-
-
Constructor Detail
-
Cache
public Cache(scala.collection.immutable.SortedSet<SimpleDnsCache.ExpiryEntry<K>> queue, scala.collection.immutable.Map<K,<any>> cache, scala.Function0<java.lang.Object> clock)
-
-
Method Detail
-
cleanup
public SimpleDnsCache.Cache<K,V> cleanup()
-
put
public SimpleDnsCache.Cache<K,V> put(K name, V answer, CachePolicy$CachePolicy ttl)
-
-