
generic.online.game.server.gogs.model.rooms.CloseRoomTimer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generic-online-game-server Show documentation
Show all versions of generic-online-game-server Show documentation
Simple tool to create online game server.
The newest version!
package generic.online.game.server.gogs.model.rooms;
import lombok.RequiredArgsConstructor;
import java.util.Timer;
import java.util.TimerTask;
@RequiredArgsConstructor
public class CloseRoomTimer extends TimerTask {
private final Operations operations;
@Override
public void run() {
operations.closeRoom();
}
public Timer startCounting(int seconds) {
Timer timer = new Timer();
timer.schedule(this, seconds * 1000);
return timer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy