Interface UserSessionProvider


public interface UserSessionProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • refreshSingle

      void refreshSingle(@NotNull @NotNull UUID sessionId, int userId)
    • findById

      @NotNull @NotNull Optional<UserSession> findById(@NotNull @NotNull UUID sessionId)
    • findByUserId

      @NotNull @NotNull Optional<UserSession> findByUserId(int userId)
    • findAll

      @NotNull @NotNull @Unmodifiable List<UserSession> findAll()
    • create

      @NotNull @NotNull Optional<UserSession> create(int userId, @NotNull @NotNull InetAddress inetAddress, @Nullable @Nullable String clientBrand, int protocolVersion)
    • delete

      int delete(@NotNull @NotNull UUID sessionId)
    • of

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