Interface MaintenanceProvider
public interface MaintenanceProvider
-
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<Maintenance> create(int createdBy, @NotNull LocalDateTime startAt, @NotNull LocalDateTime endAt, @Nullable String title, @Nullable String reason) @NotNull Optional<Maintenance> @NotNull @Unmodifiable List<Maintenance> findAll()@NotNull Optional<Maintenance> findById(int id) static @NotNull MaintenanceProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<Maintenance> update(int id, int changedBy, @NotNull Consumer<Maintenance.Builder> updater)
-
Method Details
-
refreshCache
void refreshCache() -
findById
-
findAll
-
findActive
-
create
@NotNull @NotNull Optional<Maintenance> create(int createdBy, @NotNull @NotNull LocalDateTime startAt, @NotNull @NotNull LocalDateTime endAt, @Nullable @Nullable String title, @Nullable @Nullable String reason) -
update
@NotNull @NotNull Optional<Maintenance> update(int id, int changedBy, @NotNull @NotNull Consumer<Maintenance.Builder> updater) -
of
@Internal @NotNull static @NotNull MaintenanceProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-