public class EtcdConfigSource extends AbstractParsableConfigSource<Long>
Config source is initialized by EtcdConfigSourceBuilder.
EtcdConfigSourceBuilderAbstractParsableConfigSource.Builder<B extends AbstractParsableConfigSource.Builder<B,T>,T>AbstractSource.Data<D,S>| Modifier and Type | Method and Description |
|---|---|
protected ConfigParser.Content<Long> |
content()
Returns config source content.
|
static EtcdConfigSource |
create(Config config)
Create a new instance from configuration.
|
protected Optional<Long> |
dataStamp()
Returns current stamp of data in config source.
|
protected String |
mediaType()
Returns source associated media type or
null if unknown. |
protected String |
uid()
Returns universal id of source to be used to construct
AbstractSource.description(). |
loadData, parserchanges, configContext, init, processLoadedDatadescription, fireChangeEvent, isMandatory, loadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetclose, description, loadprotected String mediaType()
AbstractParsableConfigSourcenull if unknown.mediaType in class AbstractParsableConfigSource<Long>null if unknown.protected String uid()
AbstractSourceAbstractSource.description().uid in class AbstractSource<ConfigNode.ObjectNode,Long>protected Optional<Long> dataStamp()
AbstractSourcedataStamp in class AbstractSource<ConfigNode.ObjectNode,Long>protected ConfigParser.Content<Long> content() throws ConfigException
AbstractParsableConfigSourcecontent in class AbstractParsableConfigSource<Long>null.ConfigException - in case of loading of configuration from config source failed.public static EtcdConfigSource create(Config config)
config - configuration to load fromConfigSources.load(Supplier[]),
ConfigSources.load(Config)Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.