public class DefaultFileRegistry extends Object implements systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistry
| Constructor and Description |
|---|
DefaultFileRegistry(String operatingFolder) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createKey(@NotNull String keyName,
T t) |
void |
deleteKey(@NotNull String key) |
<T> @NotNull Optional<T> |
getKey(@NotNull String keyName) |
<T> @NotNull Collection<T> |
readKeys(@NotNull Function<systems.reformcloud.reformcloud2.executor.api.configuration.gson.JsonConfiguration,T> function,
@NotNull Consumer<Path> failureHandler) |
<T> void |
updateKey(@NotNull String key,
T newValue) |
public DefaultFileRegistry(String operatingFolder)
@NotNull
public <T> T createKey(@NotNull
@NotNull String keyName,
@NotNull
T t)
createKey in interface systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistry@NotNull public <T> @NotNull Optional<T> getKey(@NotNull @NotNull String keyName)
getKey in interface systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistrypublic void deleteKey(@NotNull
@NotNull String key)
deleteKey in interface systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistrypublic <T> void updateKey(@NotNull
@NotNull String key,
@NotNull
T newValue)
updateKey in interface systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistry@NotNull public <T> @NotNull Collection<T> readKeys(@NotNull @NotNull Function<systems.reformcloud.reformcloud2.executor.api.configuration.gson.JsonConfiguration,T> function, @NotNull @NotNull Consumer<Path> failureHandler)
readKeys in interface systems.reformcloud.reformcloud2.executor.api.registry.io.FileRegistryCopyright © 2020. All rights reserved.