Package org.apache.pekko.io
Class SimpleDnsCache
java.lang.Object
org.apache.pekko.io.Dns
org.apache.pekko.io.SimpleDnsCache
- All Implemented Interfaces:
NoSerializationVerificationNeeded,PeriodicCacheCleanup
public class SimpleDnsCache
extends Dns
implements PeriodicCacheCleanup, NoSerializationVerificationNeeded
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.pekko.io.Dns
Dns.Command -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<DnsProtocol.Resolved>cached(DnsProtocol.Resolve request) final voidcleanup()protected longclock()
-
Constructor Details
-
SimpleDnsCache
public SimpleDnsCache()
-
-
Method Details
-
cached
-
clock
protected long clock() -
cleanup
public final void cleanup()- Specified by:
cleanupin interfacePeriodicCacheCleanup
-