use of org.minidns.cache.FullLRUCache in project minidns by MiniDNS.
the class IntegrationTestTools method getClient.
public static DNSSECClient getClient(CacheConfig cacheConfig) {
DNSCache cache;
switch(cacheConfig) {
case without:
cache = null;
break;
case normal:
cache = new LRUCache();
break;
case extended:
cache = new ExtendedLRUCache();
break;
case full:
cache = new FullLRUCache();
break;
default:
throw new IllegalStateException();
}
DNSSECClient client = new DNSSECClient(cache);
client.setDataSource(new NetworkDataSourceWithAccounting());
return client;
}
Aggregations