Class PunishmentCurrentIpProviderImpl
java.lang.Object
de.murmelmeister.murmelapi.punishment.ip.PunishmentCurrentIpProviderImpl
- All Implemented Interfaces:
PunishmentCurrentIpProvider
public final class PunishmentCurrentIpProviderImpl
extends Object
implements PunishmentCurrentIpProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RefreshTypeprivate final PunishmentCurrentIpCacheprivate final de.murmelmeister.library.database.Databaseprivate final RefreshTypestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionPunishmentCurrentIpProviderImpl(de.murmelmeister.library.database.Database database, Long fetchLimit, long cacheCapacity, Duration refreshInterval) -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetAllPunishedIps(int typeId) getPunishedIp(String ipAddress, int typeId) voidstatic voidsetup(de.murmelmeister.library.database.Database database)
-
Field Details
-
TABLE_NAME
- See Also:
-
database
private final de.murmelmeister.library.database.Database database -
cache
-
all
-
single
-
-
Constructor Details
-
PunishmentCurrentIpProviderImpl
-
-
Method Details
-
setup
public static void setup(de.murmelmeister.library.database.Database database) -
closeCache
public void closeCache()- Specified by:
closeCachein interfacePunishmentCurrentIpProvider
-
refreshCache
public void refreshCache()- Specified by:
refreshCachein interfacePunishmentCurrentIpProvider
-
getAllPunishedIps
- Specified by:
getAllPunishedIpsin interfacePunishmentCurrentIpProvider
-
getPunishedIp
- Specified by:
getPunishedIpin interfacePunishmentCurrentIpProvider
-
create
- Specified by:
createin interfacePunishmentCurrentIpProvider
-
delete
- Specified by:
deletein interfacePunishmentCurrentIpProvider
-
update
- Specified by:
updatein interfacePunishmentCurrentIpProvider
-