soc.client
Class SOCPlayerClient.GameOptionsTimeoutTask
java.lang.Object
java.util.TimerTask
soc.client.SOCPlayerClient.GameOptionsTimeoutTask
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- SOCPlayerClient
private static class SOCPlayerClient.GameOptionsTimeoutTask
- extends java.util.TimerTask
TimerTask used soon after client connect, to prevent waiting forever for
game options info
(assume slow connection or server bug).
Set up when sending GAMEOPTIONGETINFOS
.
When timer fires, assume no more options will be received. Call
handleGAMEOPTIONINFO("-",false)
to trigger end-of-list behavior at client.
- Since:
- 1.1.07
- Author:
- jdmonin
Method Summary |
void |
run()
Called when timer fires. |
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pcli
public SOCPlayerClient.GameAwtDisplay pcli
srvOpts
public ServerGametypeInfo srvOpts
SOCPlayerClient.GameOptionsTimeoutTask
public SOCPlayerClient.GameOptionsTimeoutTask(SOCPlayerClient.GameAwtDisplay c,
ServerGametypeInfo opts)
run
public void run()
- Called when timer fires. See class description for action taken.
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class java.util.TimerTask