public static class LookupSession.LookupSessionBuilder extends Object
LookupSession instances where functionality is mostly generated as
described in the Lombok Builder
documentation. An instance of this class is obtained by calling LookupSession.builder()
and configured using the methods with names corresponding to the different properties. Once
fully configured, a LookupSession instance is obtained by calling build() on the builder instance.| Modifier and Type | Method and Description |
|---|---|
LookupSession |
build() |
LookupSession.LookupSessionBuilder |
cache(Integer cacheKey,
Cache cacheValue) |
LookupSession.LookupSessionBuilder |
caches(Map<? extends Integer,? extends Cache> caches) |
LookupSession.LookupSessionBuilder |
clearCaches() |
LookupSession.LookupSessionBuilder |
clearSearchPath() |
LookupSession.LookupSessionBuilder |
cycleResults(boolean cycleResults)
If set to
true, cached results with multiple records will be returned with the starting
point shifted one step per request. |
LookupSession.LookupSessionBuilder |
defaultHostsFileParser()
Enable querying the local hosts database using the system defaults.
|
LookupSession.LookupSessionBuilder |
hostsFileParser(HostsFileParser hostsFileParser)
Configures the local hosts database file parser to use within this session.
|
LookupSession.LookupSessionBuilder |
maxRedirects(int maxRedirects)
Sets the maximum number of CNAME or DNAME redirects allowed before lookups with fail with
RedirectOverflowException. |
LookupSession.LookupSessionBuilder |
ndots(int ndots)
Sets the threshold for the number of dots which must appear in a name before it is considered
absolute.
|
LookupSession.LookupSessionBuilder |
resolver(@NonNull Resolver resolver)
The
Resolver to use to look up records. |
LookupSession.LookupSessionBuilder |
searchPath(Collection<? extends Name> searchPath) |
LookupSession.LookupSessionBuilder |
searchPath(Name searchPath) |
String |
toString() |
public LookupSession.LookupSessionBuilder defaultHostsFileParser()
HostsFileParserpublic LookupSession.LookupSessionBuilder resolver(@NonNull @NonNull Resolver resolver)
Resolver to use to look up records.this.public LookupSession.LookupSessionBuilder maxRedirects(int maxRedirects)
RedirectOverflowException. Defaults to 16.this.public LookupSession.LookupSessionBuilder ndots(int ndots)
this.public LookupSession.LookupSessionBuilder searchPath(Name searchPath)
public LookupSession.LookupSessionBuilder searchPath(Collection<? extends Name> searchPath)
public LookupSession.LookupSessionBuilder clearSearchPath()
public LookupSession.LookupSessionBuilder cycleResults(boolean cycleResults)
true, cached results with multiple records will be returned with the starting
point shifted one step per request.this.public LookupSession.LookupSessionBuilder cache(Integer cacheKey, Cache cacheValue)
public LookupSession.LookupSessionBuilder caches(Map<? extends Integer,? extends Cache> caches)
public LookupSession.LookupSessionBuilder clearCaches()
public LookupSession.LookupSessionBuilder hostsFileParser(HostsFileParser hostsFileParser)
this.public LookupSession build()
Copyright © 2021 dnsjava.org. All rights reserved.