Code example for UUID

Methods: toString

0
    public int getListenPort() { 
        return listenPort;
    } 
 
    public String toString() {
        return workerId.toString() + " (" + listenAddress + ":" + listenPort + ")";
    } 
}