NameResolver implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final EventExecutor |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. |
| protected abstract void | doResolve(String inetHost, Promise<T> promise)
Invoked by |
| protected abstract void | doResolveAll(String inetHost, Promise<List<T>> promise)
Invoked by |
| protected EventExecutor | executor()
Returns the |
| public final Future | resolve(String
the name to resolve inetHost)Implements io. |
| public Future | resolve(String
the name to resolve inetHost, Promise<T> the promise)Promise which will be fulfilled when the name resolution is finishedImplements io. |
| public final Future | resolveAll(String
the name to resolve inetHost)Implements io. |
| public Future | resolveAll(String
the name to resolve inetHost, Promise<List<T>> the promise)Promise which will be fulfilled when the name resolution is finishedImplements io. |
| executor | back to summary |
|---|---|
| private final EventExecutor executor | |
| SimpleNameResolver | back to summary |
|---|---|
protected SimpleNameResolver(EventExecutor executor)
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Closes all the resources allocated and used by this resolver.
| |
| doResolve | back to summary |
|---|---|
| protected abstract void doResolve(String inetHost, Promise<T> promise) throws Exception Invoked by | |
| doResolveAll | back to summary |
|---|---|
| protected abstract void doResolveAll(String inetHost, Promise<List<T>> promise) throws Exception Invoked by | |
| executor | back to summary |
|---|---|
| protected EventExecutor executor() Returns the | |
| resolve | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified name into an address. | |
| resolve | back to summary |
|---|---|
| public Future Implements io. Doc from io. Resolves the specified name into an address. | |
| resolveAll | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified host name and port into a list of address. | |
| resolveAll | back to summary |
|---|---|
| public Future Implements io. Doc from io. Resolves the specified host name and port into a list of address. | |