Interface MaintenanceProvider
public interface MaintenanceProvider
-
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<Maintenance> create(@Nullable String title, @Nullable String reason, @NotNull MaintenanceType status, @NotNull LocalDateTime startAt, @NotNull LocalDateTime endAt, int createdBy) @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, @Nullable String title, @Nullable String reason, @NotNull MaintenanceType status, @NotNull LocalDateTime startAt, @NotNull LocalDateTime endAt, int changedBy)
-
Method Details
-
refreshCache
void refreshCache() -
findById
-
findAll
-
create
@NotNull @NotNull Optional<Maintenance> create(@Nullable @Nullable String title, @Nullable @Nullable String reason, @NotNull @NotNull MaintenanceType status, @NotNull @NotNull LocalDateTime startAt, @NotNull @NotNull LocalDateTime endAt, int createdBy) -
update
@NotNull @NotNull Optional<Maintenance> update(int id, @Nullable @Nullable String title, @Nullable @Nullable String reason, @NotNull @NotNull MaintenanceType status, @NotNull @NotNull LocalDateTime startAt, @NotNull @NotNull LocalDateTime endAt, int changedBy) -
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)
-