Interface UserPrefixColorProvider
public interface UserPrefixColorProvider
-
Method Summary
Modifier and TypeMethodDescriptionint@NotNull Optional<UserPrefixColor> findActiveById(int userId) @NotNull Optional<UserPrefixColor> @NotNull @Unmodifiable List<UserPrefixColor> findByUserId(int userId) static @NotNull UserPrefixColorProviderof(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval) void@NotNull Optional<UserPrefixColor>
-
Method Details
-
refreshCache
void refreshCache() -
findById
-
findActiveById
-
findByUserId
-
upsert
@NotNull @NotNull Optional<UserPrefixColor> upsert(int userId, @NotNull @NotNull String colorId, boolean active) -
delete
-
of
@Internal @NotNull static @NotNull UserPrefixColorProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)
-