@ThreadSafe public final class PollService.VoteServerScope.Run extends Object
VoteServer.Run.scopePoll()
Constructor and Description |
---|
PollService.VoteServerScope.Run(VoteServer.Run _vsRun)
Constructs a Run.
|
Modifier and Type | Method and Description |
---|---|
PollService |
constructCachedPoll(String name,
PrintWriter logWriter)
Returns a newly constructed poll, caching it for later retrieval.
|
PollService |
ensurePoll(String name)
Returns a poll, if necessary constructing and caching it for later
retrieval.
|
VoteServer.Run |
vsRun()
The vote-server run.
|
@Warning(value="non-API") public PollService.VoteServerScope.Run(VoteServer.Run _vsRun)
public PollService constructCachedPoll(String name, PrintWriter logWriter) throws IOException, ScriptException, SQLException
logWriter
- the writer for logging construction messages. When
non-null, scratch
construction is attempted. (The writer must be a PrintWriter for
sake of scripts, where conventional 'print' statements fail with
other writer types.)IOException
ScriptException
SQLException
public PollService ensurePoll(String name) throws IOException, ScriptException, SQLException
public VoteServer.Run vsRun()