AddressResolver implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final EventExecutor | |
| private final TypeParameterMatcher |
| Access | Constructor and Description |
|---|---|
| protected | AbstractAddressResolver(EventExecutor
the executor)EventExecutor which is used to notify the listeners of the Future returned
by resolve(SocketAddress)
|
| protected | AbstractAddressResolver(EventExecutor
the executor, Class<? extends T> EventExecutor which is used to notify the listeners of the Future returned
by resolve(SocketAddress)the type of the addressType)SocketAddress supported by this resolver
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. |
| protected abstract boolean | doIsResolved(T address)
Invoked by |
| protected abstract void | doResolve(T unresolvedAddress, Promise<T> promise)
Invoked by |
| protected abstract void | doResolveAll(T unresolvedAddress, Promise<List<T>> promise)
Invoked by |
| protected EventExecutor | executor()
Returns the |
| public final boolean | isResolved(SocketAddress address)
Implements io. true if and only if the specified address has been resolved.
|
| public boolean | isSupported(SocketAddress address)
Implements io. true if and only if the specified address is supported by this resolved.
|
| public final Future | resolve(SocketAddress
the address to resolve address)Implements io. |
| public final Future | resolve(SocketAddress
the address to resolve address, Promise<T> the promise)Promise which will be fulfilled when the name resolution is finishedImplements io. |
| public final Future | resolveAll(SocketAddress
the address to resolve address)Implements io. |
| public final Future | resolveAll(SocketAddress
the address to resolve address, 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 | |
| matcher | back to summary |
|---|---|
| private final TypeParameterMatcher matcher | |
| AbstractAddressResolver | back to summary |
|---|---|
protected AbstractAddressResolver(EventExecutor executor)
| |
| AbstractAddressResolver | back to summary |
|---|---|
protected AbstractAddressResolver(EventExecutor executor, Class<? extends T> addressType)
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Closes all the resources allocated and used by this resolver.
| |
| doIsResolved | back to summary |
|---|---|
| protected abstract boolean doIsResolved(T address) Invoked by | |
| doResolve | back to summary |
|---|---|
| protected abstract void doResolve(T unresolvedAddress, Promise<T> promise) throws Exception Invoked by | |
| doResolveAll | back to summary |
|---|---|
| protected abstract void doResolveAll(T unresolvedAddress, Promise<List<T>> promise) throws Exception Invoked by | |
| executor | back to summary |
|---|---|
| protected EventExecutor executor() Returns the | |
| isResolved | back to summary |
|---|---|
| public final boolean isResolved(SocketAddress address) Implements io. Doc from io. Returns
| |
| isSupported | back to summary |
|---|---|
| public boolean isSupported(SocketAddress address) Implements io. Doc from io. Returns
| |
| resolve | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified address. If the specified address is resolved already, this method does nothing but returning the original address.
| |
| resolve | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified address. If the specified address is resolved already, this method does nothing but returning the original address.
| |
| resolveAll | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified address. If the specified address is resolved already, this method does nothing but returning the original address.
| |
| resolveAll | back to summary |
|---|---|
| public final Future Implements io. Doc from io. Resolves the specified address. If the specified address is resolved already, this method does nothing but returning the original address.
| |