public class EtcdResolver extends Object implements SchemaResolver
| Constructor and Description |
|---|
EtcdResolver() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getChildren(String url)
Returns the list of child resources of the resource identified by the URL.
|
List<String> |
getSchemas() |
long |
getTimestamp(String url)
Returns the modification date of the resource.
|
String |
getUrl() |
void |
observeChange(String url,
Consumer<InputStream> consumer)
Calls the consumer when the InputStream for the requested URL changes.
|
InputStream |
resolve(String url)
Returns the InputStream for the requested URL.
|
void |
setUrl(String url) |
public String getUrl()
public void setUrl(String url)
public List<String> getSchemas()
getSchemas in interface SchemaResolverResolverMap.public InputStream resolve(String url) throws ResourceRetrievalException
Resolverresolve in interface ResolverResourceRetrievalException - if the resource identified by the URL does not exist.public void observeChange(String url, Consumer<InputStream> consumer) throws ResourceRetrievalException
ResolverobserveChange in interface ResolverResourceRetrievalException - if the resource identified by the URL does not exist.public List<String> getChildren(String url) throws FileNotFoundException
ResolvergetChildren in interface ResolverFileNotFoundException - if the resource identified by the URL does not exist.public long getTimestamp(String url) throws FileNotFoundException
ResolvergetTimestamp in interface ResolverFileNotFoundException - if the resource identified by the URL does not exist.Copyright © 2021. All Rights Reserved.