Interface PunishmentUserProvider
public interface PunishmentUserProvider
-
Method Summary
Modifier and TypeMethodDescriptionint@NotNull Optional<PunishmentUser> findPunishedUser(@NotNull UUID mojangId, int typeId) @NotNull @Unmodifiable List<PunishmentUser> findPunishedUsers(int typeId) intstatic @NotNull PunishmentUserProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<PunishmentUser>
-
Method Details
-
refreshCache
void refreshCache() -
findPunishedUser
@NotNull @NotNull Optional<PunishmentUser> findPunishedUser(@NotNull @NotNull UUID mojangId, int typeId) -
findPunishedUsers
-
upsert
@NotNull @NotNull Optional<PunishmentUser> upsert(@NotNull @NotNull UUID mojangId, int typeId, @NotNull @NotNull UUID auditId, @Nullable @Nullable Long durationSecs) -
delete
-
loadExpired
int loadExpired() -
of
@Internal @NotNull static @NotNull PunishmentUserProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-