Code example for ScheduledExecutorService

Methods: shutdownNow

0
	{ 
		return _instance;
	} 
	 
	public void shutdown() { 
		this.scheduler.shutdownNow();
	} 
	 
	public void addRobot(IoSession ioSession, Robot robot)
	{ 
		ioSession2RobotMap.put(ioSession, robot);
	} 
	 
	public Robot removeRobot(IoSession ioSession)
	{ 
		return ioSession2RobotMap.remove(ioSession);
	} 
	 
	public Robot getRobot(IoSession ioSession)
	{ 
		return ioSession2RobotMap.get(ioSession);