Interface MessageProvider


public interface MessageProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findMessage

      @NotNull @NotNull Optional<Message> findMessage(int messageId)
    • findMessage

      @NotNull @NotNull Optional<Message> findMessage(@NotNull @NotNull String tagId, int languageId)
    • findMessages

      @NotNull @NotNull @Unmodifiable List<Message> findMessages(int languageId)
    • upsert

      @NotNull @NotNull Optional<Message> upsert(@NotNull @NotNull String tagId, int languageId, @NotNull @NotNull String message)
    • delete

      int delete(@NotNull @NotNull String tagId, int languageId)
    • delete

      int delete(int languageId)
    • upsertAll

      int @NotNull [] upsertAll(@NotNull @NotNull Collection<Message> messages)
    • of

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