Interface PunishmentIpAddressProvider
public interface PunishmentIpAddressProvider
-
Method Summary
Modifier and TypeMethodDescriptionintdelete(@NotNull InetAddress inetAddress, int typeId) @NotNull Optional<PunishmentIpAddress> findPunishedIpAddress(@NotNull InetAddress inetAddress, int typeId) @NotNull @Unmodifiable List<PunishmentIpAddress> findPunishedIpAddresses(int typeId) intstatic @NotNull PunishmentIpAddressProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<PunishmentIpAddress> upsert(@NotNull InetAddress inetAddress, int typeId, @NotNull UUID auditId, @Nullable Long durationSecs)
-
Method Details
-
refreshCache
void refreshCache() -
findPunishedIpAddress
@NotNull @NotNull Optional<PunishmentIpAddress> findPunishedIpAddress(@NotNull @NotNull InetAddress inetAddress, int typeId) -
findPunishedIpAddresses
-
upsert
@NotNull @NotNull Optional<PunishmentIpAddress> upsert(@NotNull @NotNull InetAddress inetAddress, int typeId, @NotNull @NotNull UUID auditId, @Nullable @Nullable Long durationSecs) -
delete
-
loadExpired
int loadExpired() -
of
@Internal @NotNull static @NotNull PunishmentIpAddressProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-