- Type Parameters:
- T- Type of target of this config source
- All Known Implementing Classes:
- DirectoryConfigSource,- EtcdConfigSource,- FileConfigSource,- FileOverrideSource,- UrlConfigSource,- UrlOverrideSource
public interface WatchableSource<T>
A source implementing this interface provides a target that a 
ChangeWatcher can
 use.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceWatchableSource.Builder<B extends WatchableSource.Builder<B,T>, T> A builder for a watchable source.
- 
Method SummaryModifier and TypeMethodDescriptionIf a change watcher is configured with this source, return it.target()The target of this source.Target type as supported by this source.
- 
Method Details- 
targetTypeTarget type as supported by this source.- Returns:
- class of the target, by default used for target()
 
- 
targetT target()The target of this source.- Returns:
- target this source is configured with, never null
 
- 
changeWatcherOptional<ChangeWatcher<Object>> changeWatcher()If a change watcher is configured with this source, return it. The source implementation does not need to handle change watcher .- Returns:
- change watcher if one is configured on this source
 
 
-