Interface PunishmentAuditProvider
public interface PunishmentAuditProvider
-
Method Summary
Modifier and TypeMethodDescription@NotNull Optional<PunishmentAudit> create(@Nullable UUID mojangId, @Nullable InetAddress inetAddress, @NotNull PunishmentReason reason, int executorId) @NotNull Optional<PunishmentAudit> @NotNull @Unmodifiable List<PunishmentAudit> findAudits(@NotNull InetAddress inetAddress) @NotNull @Unmodifiable List<PunishmentAudit> findAudits(@NotNull UUID mojangId) @NotNull Optional<PunishmentAudit> modify(@Nullable UUID mojangId, @Nullable InetAddress inetAddress, @NotNull PunishmentReason reason, int executorId) static @NotNull PunishmentAuditProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<PunishmentAudit> revoke(@Nullable UUID mojangId, @Nullable InetAddress inetAddress, @NotNull PunishmentAudit audit, int executorId)
-
Method Details
-
refreshCache
void refreshCache() -
findAudit
-
findAudits
-
findAudits
@NotNull @NotNull @Unmodifiable List<PunishmentAudit> findAudits(@NotNull @NotNull InetAddress inetAddress) -
create
@NotNull @NotNull Optional<PunishmentAudit> create(@Nullable @Nullable UUID mojangId, @Nullable @Nullable InetAddress inetAddress, @NotNull @NotNull PunishmentReason reason, int executorId) -
modify
@NotNull @NotNull Optional<PunishmentAudit> modify(@Nullable @Nullable UUID mojangId, @Nullable @Nullable InetAddress inetAddress, @NotNull @NotNull PunishmentReason reason, int executorId) -
revoke
@NotNull @NotNull Optional<PunishmentAudit> revoke(@Nullable @Nullable UUID mojangId, @Nullable @Nullable InetAddress inetAddress, @NotNull @NotNull PunishmentAudit audit, int executorId) -
of
@Internal @NotNull static @NotNull PunishmentAuditProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-