Interface PunishmentUserProvider


public interface PunishmentUserProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findPunishedUser

      @NotNull @NotNull Optional<PunishmentUser> findPunishedUser(@NotNull @NotNull UUID mojangId, int typeId)
    • findPunishedUsers

      @NotNull @NotNull @Unmodifiable List<PunishmentUser> findPunishedUsers(int typeId)
    • upsert

      @NotNull @NotNull Optional<PunishmentUser> upsert(@NotNull @NotNull UUID mojangId, int typeId, @NotNull @NotNull UUID auditId, @Nullable @Nullable Long durationSecs)
    • delete

      int delete(@NotNull @NotNull UUID mojangId, int typeId)
    • 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)