soc.client
Class SOCPlayerClient.GameOptionsTimeoutTask

java.lang.Object
  extended by java.util.TimerTask
      extended by 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

Field Summary
 SOCPlayerClient.GameAwtDisplay pcli
           
 ServerGametypeInfo srvOpts
           
 
Constructor Summary
SOCPlayerClient.GameOptionsTimeoutTask(SOCPlayerClient.GameAwtDisplay c, ServerGametypeInfo opts)
           
 
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
 

Field Detail

pcli

public SOCPlayerClient.GameAwtDisplay pcli

srvOpts

public ServerGametypeInfo srvOpts
Constructor Detail

SOCPlayerClient.GameOptionsTimeoutTask

public SOCPlayerClient.GameOptionsTimeoutTask(SOCPlayerClient.GameAwtDisplay c,
                                              ServerGametypeInfo opts)
Method Detail

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