Interface ClanGroupProvider


public interface ClanGroupProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findById

      @NotNull @NotNull Optional<ClanGroup> findById(@NotNull @NotNull UUID clanId, @NotNull @NotNull UUID groupId)
    • findByClanId

      @NotNull @NotNull @Unmodifiable List<ClanGroup> findByClanId(@NotNull @NotNull UUID clanId)
    • findAll

      @NotNull @NotNull @Unmodifiable List<ClanGroup> findAll()
    • upsert

      @NotNull @NotNull Optional<ClanGroup> upsert(@NotNull @NotNull UUID clanId, @NotNull @NotNull UUID groupId, @NotNull @NotNull String groupName, int priority, boolean defaultGroup, int executorId)
    • delete

      int delete(@NotNull @NotNull UUID clanId, @NotNull @NotNull UUID groupId)
    • of

      @Internal @NotNull static @NotNull ClanGroupProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)