This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from jeakfrw/fix/db-query-performance
Fix/db query performance
- Loading branch information
Showing
6 changed files
with
141 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
group 'de.fearnixx' | ||
version '1.0.3' | ||
version '1.0.4' | ||
def projectVersion = project.version | ||
|
||
apply plugin: 'java' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/de/fearnixx/jeak/service/teamspeak/CachedUserResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package de.fearnixx.jeak.service.teamspeak; | ||
|
||
import de.fearnixx.jeak.teamspeak.data.IUser; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class CachedUserResult { | ||
|
||
private final List<IUser> users; | ||
private final LocalDateTime expiry; | ||
|
||
public CachedUserResult(List<IUser> users, LocalDateTime expiry) { | ||
this.users = users; | ||
this.expiry = expiry; | ||
} | ||
|
||
public List<IUser> getUsers() { | ||
return new ArrayList<>(users); | ||
} | ||
|
||
public LocalDateTime getExpiry() { | ||
return expiry; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters