mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Update Client.java
Added ability to customize refCount value of a client
This commit is contained in:
parent
34e5b9027e
commit
d1bc03664b
1 changed files with 6 additions and 1 deletions
|
@ -36,9 +36,14 @@ public class Client {
|
||||||
|
|
||||||
public Map<String, String> serializableProperties;
|
public Map<String, String> serializableProperties;
|
||||||
|
|
||||||
public transient AtomicInteger refCount = new AtomicInteger(1);
|
public transient AtomicInteger refCount;
|
||||||
|
|
||||||
public Client(UUID session) {
|
public Client(UUID session) {
|
||||||
|
this(session, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Client(UUID session, int initialRefCount) {
|
||||||
|
refCount = new AtomicInteger(initialRefCount);
|
||||||
this.session = session;
|
this.session = session;
|
||||||
timestamp = System.currentTimeMillis();
|
timestamp = System.currentTimeMillis();
|
||||||
type = null;
|
type = null;
|
||||||
|
|
Loading…
Reference in a new issue