public class LookupSession extends Object
LookupSession.LookupSessionBuilder
instance returned by builder()
.Modifier and Type | Class and Description |
---|---|
static class |
LookupSession.LookupSessionBuilder
A builder for
LookupSession instances. |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ITERATIONS |
static int |
DEFAULT_NDOTS |
Modifier and Type | Method and Description |
---|---|
static LookupSession.LookupSessionBuilder |
builder()
Returns an empty
LookupSession.LookupSessionBuilder instance. |
static LookupSession.LookupSessionBuilder |
defaultBuilder()
Returns a
LookupSession.LookupSessionBuilder instance initialized with defaults. |
CompletionStage<LookupResult> |
lookupAsync(Name name,
int type)
Make an asynchronous lookup of the provided name using the default
DClass.IN . |
CompletionStage<LookupResult> |
lookupAsync(Name name,
int type,
int dclass)
Make an asynchronous lookup of the provided name.
|
public static final int DEFAULT_MAX_ITERATIONS
public static final int DEFAULT_NDOTS
public static LookupSession.LookupSessionBuilder builder()
LookupSession.LookupSessionBuilder
instance. See defaultBuilder()
for a
builder initialized with defaults.public static LookupSession.LookupSessionBuilder defaultBuilder()
LookupSession.LookupSessionBuilder
instance initialized with defaults.
ExtendedResolver
initialized with the system's default
DNS servers as determined by ResolverConfig
.
ResolverConfig
.
IN
class is installed.
public CompletionStage<LookupResult> lookupAsync(Name name, int type)
DClass.IN
.name
- the name to look up.type
- the type to look up, values should correspond to constants in Type
.CompletionStage
what will yield the eventual lookup result.public CompletionStage<LookupResult> lookupAsync(Name name, int type, int dclass)
name
- the name to look up.type
- the type to look up, values should correspond to constants in Type
.dclass
- the class to look up, values should correspond to constants in DClass
.CompletionStage
what will yield the eventual lookup result.Copyright © 2022 dnsjava.org. All rights reserved.