Add (v1) NetworkManager, Session and Transport #173
@@ -0,0 +1,22 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.common.network;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class SessionId {
|
||||||
|
/**
|
||||||
|
* The session id is used to identify a unique client connection in the SessionRegistry
|
||||||
|
*/
|
||||||
|
private final UUID value;
|
||||||
|
|
||||||
|
public SessionId() {
|
||||||
|
this.value = UUID.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SessionId(UUID value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UUID value() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user