Package csw.config.api.javadsl
Interface IConfigClientService
- All Known Subinterfaces:
IConfigService
public interface IConfigClientService
Defines an interface to be used by clients for retrieving configuration information
-
Method Summary
Modifier and TypeMethodDescriptioncsw.config.api.scaladsl.ConfigService
asScala()
Returns the Scala API for this instance of config serviceReturns true if the given path exists and is being managedReturns true if the given path exists at the given revisionGets and returns the content of active version of the file stored under the given path.
-
Method Details
-
asScala
csw.config.api.scaladsl.ConfigService asScala()Returns the Scala API for this instance of config service- Returns:
- (undocumented)
-
exists
Returns true if the given path exists and is being managed- Parameters:
path
- the file path relative to the repository root- Returns:
- a CompletableFuture that completes with true if the file exists, false otherwise. It can fail with
InvalidInput
orFileNotFound
-
exists
Returns true if the given path exists at the given revision- Parameters:
path
- the file path relative to the repository rootid
- revision of the file- Returns:
- a CompletableFuture that completes with true if the file exists, false otherwise. It can fail with
InvalidInput
orFileNotFound
-
getActive
Gets and returns the content of active version of the file stored under the given path.- Parameters:
path
- the file path relative to the repository root- Returns:
- a CompletableFuture that can be used to access the file's data, if found. It can fail with
EmptyResponse
orInvalidInput
orFileNotFound
-