public class WhatNextManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WhatNextManager.TimedJvmQuit
A demon thread which is started by triggerTimedQuit.
|
static class |
WhatNextManager.WhatToDoNext
The various constants for activities what the Start class should do
as next thing, typically when a dialog is closed or a games ended.
|
Modifier and Type | Field and Description |
---|---|
private int |
howManyGamesLeft |
private static java.util.logging.Logger |
LOGGER |
private Options |
startOptions |
private WhatNextManager.WhatToDoNext |
whatToDoNext |
Constructor and Description |
---|
WhatNextManager(Options startOpts) |
Modifier and Type | Method and Description |
---|---|
int |
decrementHowManyGamesLeft() |
int |
getHowManyGamesLeft() |
Options |
getStartOptions() |
WhatNextManager.WhatToDoNext |
getWhatToDoNext() |
void |
setWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext,
boolean triggerQuitTimer)
Set the action what shall be executed next.
|
void |
setWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext,
java.lang.String loadFile) |
static void |
sleepFor(long millis) |
void |
triggerTimedQuit()
Trigger a timed Quit, which will (by using a demon thread) terminate
the JVM after a timeout (currently 10 (120) seconds)
- unless the JVM has quit already anyway because cleanup has
succeeded as planned.
|
private static final java.util.logging.Logger LOGGER
private final Options startOptions
private WhatNextManager.WhatToDoNext whatToDoNext
private int howManyGamesLeft
public WhatNextManager(Options startOpts)
public WhatNextManager.WhatToDoNext getWhatToDoNext()
public void setWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, boolean triggerQuitTimer)
whatToDoNext
- triggerQuitTimer
- public Options getStartOptions()
public void setWhatToDoNext(WhatNextManager.WhatToDoNext whatToDoNext, java.lang.String loadFile)
public int getHowManyGamesLeft()
public int decrementHowManyGamesLeft()
public void triggerTimedQuit()
public static void sleepFor(long millis)