Interface UserLoginProvider


public interface UserLoginProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • refreshSingle

      void refreshSingle(@NotNull @NotNull UUID id, int userId, @NotNull @NotNull InetAddress inetAddress)
    • findById

      @NotNull @NotNull Optional<UserLogin> findById(@NotNull @NotNull UUID id)
    • findByUserId

      @NotNull @NotNull @Unmodifiable List<UserLogin> findByUserId(int userId)
    • findByIpAddress

      @NotNull @NotNull @Unmodifiable List<UserLogin> findByIpAddress(@Nullable @Nullable InetAddress inetAddress)
    • findAll

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

      @NotNull @NotNull Optional<UserLogin> create(int userId, @NotNull @NotNull LocalDateTime loginTime, @NotNull @NotNull InetAddress inetAddress, @Nullable @Nullable String clientBrand, int protocolVersion)
    • create

      @NotNull @NotNull Optional<UserLogin> create(@NotNull @NotNull UserSession session)
    • endSession

      @Internal @NotNull @NotNull Optional<UserLogin> endSession(int userId)
    • delete

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

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