mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
add throws IOException to CustomNameResolver interface
This commit is contained in:
parent
d474025b30
commit
004f91dfc0
@ -70,12 +70,12 @@ public class NetworkService extends AbstractComponent {
|
||||
/**
|
||||
* Resolves the default value if possible. If not, return <tt>null</tt>.
|
||||
*/
|
||||
InetAddress resolveDefault();
|
||||
InetAddress resolveDefault() throws IOException;
|
||||
|
||||
/**
|
||||
* Resolves a custom value handling, return <tt>null</tt> if can't handle it.
|
||||
*/
|
||||
InetAddress resolveIfPossible(String value);
|
||||
InetAddress resolveIfPossible(String value) throws IOException;
|
||||
}
|
||||
|
||||
private final List<CustomNameResolver> customNameResolvers = new CopyOnWriteArrayList<CustomNameResolver>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user