ST
- Type of collected execution statistics@Beta public interface CliInvocationEnv2<ST>
Modifier and Type | Method and Description |
---|---|
ExecutorService |
executorService()
Acquire an
ExecutorService to use. |
SubProgressObserver |
progressObserver(String name,
BiConsumer<ST,TimerStatistics> storeStat)
Create a
SubProgressObserver . |
void |
verbose(String... messages)
Print verbose messages.
|
void |
whenStat(Consumer<ST> stat)
Access execution statistics.
|
SubProgressObserver progressObserver(String name, BiConsumer<ST,TimerStatistics> storeStat)
SubProgressObserver
.
When execution statistics is collected then the results of the progress observer needs to be stored.name
- Name of the progress observerstoreStat
- Callback to store the observers statistics on ProgressObserver.done()
when
statistics is collectedvoid whenStat(Consumer<ST> stat)
stat
- Access statistics, invoked only when statistics is otherwise collected.void verbose(String... messages)
messages
- Verbose messagesExecutorService executorService()
ExecutorService
to use.
When used a Parameter
annotated int
parameter named tp
must be defined.