T - type of configuration-resources.public class BaseResources<T> extends Object
| Constructor and Description |
|---|
BaseResources(MetadataStoreExtended store,
Class<T> clazz,
int operationTimeoutSec) |
BaseResources(MetadataStoreExtended store,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int operationTimeoutSec) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(String path,
T data) |
CompletableFuture<Void> |
createAsync(String path,
T data) |
void |
delete(String path) |
CompletableFuture<Void> |
deleteAsync(String path) |
boolean |
exists(String path) |
CompletableFuture<Boolean> |
existsAsync(String path) |
Optional<T> |
get(String path) |
CompletableFuture<Optional<T>> |
getAsync(String path) |
List<String> |
getChildren(String path) |
CompletableFuture<List<String>> |
getChildrenAsync(String path) |
int |
getOperationTimeoutSec() |
void |
set(String path,
Function<T,T> modifyFunction) |
CompletableFuture<Void> |
setAsync(String path,
Function<T,T> modifyFunction) |
void |
setWithCreate(String path,
Function<Optional<T>,T> createFunction) |
CompletableFuture<Void> |
setWithCreateAsync(String path,
Function<Optional<T>,T> createFunction) |
public BaseResources(MetadataStoreExtended store, Class<T> clazz, int operationTimeoutSec)
public BaseResources(MetadataStoreExtended store, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int operationTimeoutSec)
public List<String> getChildren(String path) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<List<String>> getChildrenAsync(String path)
public Optional<T> get(String path) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Optional<T>> getAsync(String path)
public void set(String path, Function<T,T> modifyFunction) throws MetadataStoreException
MetadataStoreExceptionpublic void setWithCreate(String path, Function<Optional<T>,T> createFunction) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Void> setWithCreateAsync(String path, Function<Optional<T>,T> createFunction)
public void create(String path, T data) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Void> createAsync(String path, T data)
public void delete(String path) throws MetadataStoreException
MetadataStoreExceptionpublic CompletableFuture<Void> deleteAsync(String path)
public boolean exists(String path) throws MetadataStoreException
MetadataStoreExceptionpublic int getOperationTimeoutSec()
public CompletableFuture<Boolean> existsAsync(String path)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.