| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | map
A map whose key is the DNS server address and value is the map of the DNS query ID and its corresponding
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the ID that should be used or-1 if none could be generated.The nameServerAddr, DnsQueryContext InetSocketAddress of the nameserver to query.The {@link qCtx)DnsQueryContext to store.Add |
| pack-priv DnsQueryContext | Returns: The context ornull if none could be found.The nameServerAddr, int InetSocketAddress of the nameserver.The id that identifies the id)DnsQueryContext and was used for the query.Return the |
| private DnsQueryContextManager. | |
| private DnsQueryContextManager. | |
| pack-priv DnsQueryContext | Returns: The context ornull if none could be removed.The nameServerAddr, int InetSocketAddress of the nameserver.The id that identifies the id)DnsQueryContext and was used for the query.Remove the |
| private static Inet6Address | |
| private static Inet4Address |
| map | back to summary |
|---|---|
| private final Map<InetSocketAddress, DnsQueryContextManager. A map whose key is the DNS server address and value is the map of the DNS query ID and its corresponding
| |
| DnsQueryContextManager | back to summary |
|---|---|
| pack-priv DnsQueryContextManager() | |
| add | back to summary |
|---|---|
| pack-priv int add(InetSocketAddress nameServerAddr, DnsQueryContext qCtx) Add
| |
| get | back to summary |
|---|---|
| pack-priv DnsQueryContext get(InetSocketAddress nameServerAddr, int id) Return the
| |
| getContextMap | back to summary |
|---|---|
| private DnsQueryContextManager. | |
| getOrCreateContextMap | back to summary |
|---|---|
| private DnsQueryContextManager. | |
| remove | back to summary |
|---|---|
| pack-priv DnsQueryContext remove(InetSocketAddress nameServerAddr, int id) Remove the
| |
| toCompactAddress | back to summary |
|---|---|
| private static Inet6Address toCompactAddress(Inet4Address a4) | |
| toIPv4Address | back to summary |
|---|---|
| private static Inet4Address toIPv4Address(Inet6Address a6) | |
| Modifier and Type | Field and Description |
|---|---|
| private final DnsQueryIdSpace | |
| private final IntObjectMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized int | |
| pack-priv synchronized DnsQueryContext | |
| pack-priv synchronized DnsQueryContext |
| idSpace | back to summary |
|---|---|
| private final DnsQueryIdSpace idSpace | |
| map | back to summary |
|---|---|
| private final IntObjectMap<DnsQueryContext> map | |
| DnsQueryContextMap | back to summary |
|---|---|
| private DnsQueryContextMap() | |
| add | back to summary |
|---|---|
| pack-priv synchronized int add(DnsQueryContext ctx) | |
| get | back to summary |
|---|---|
| pack-priv synchronized DnsQueryContext get(int id) | |
| remove | back to summary |
|---|---|
| pack-priv synchronized DnsQueryContext remove(int id) | |