public class SchedulingStrategiesTest extends Object
Task#result
if changed
from false
to true
after all scheduled tasks
have finished.
The call SchedulingStrategy.finished()
is waiting until the
strategy has finished.
Then Task#result
should be asserted that is true
.SchedulingStrategy
Constructor and Description |
---|
SchedulingStrategiesTest() |
Modifier and Type | Method and Description |
---|---|
void |
infinitePoolStrategy() |
void |
invokerStrategy() |
void |
nonSharedPoolStrategy() |
void |
sharedPoolStrategy() |
void |
sharedPoolStrategyNullPool() |
public void invokerStrategy() throws InterruptedException
InterruptedException
public void nonSharedPoolStrategy() throws InterruptedException
InterruptedException
public void sharedPoolStrategyNullPool()
public void sharedPoolStrategy() throws InterruptedException
InterruptedException
public void infinitePoolStrategy() throws InterruptedException
InterruptedException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.