public abstract class CompetitionExecutor<T extends CompetitiveTask> extends Object implements IAsyncHandlerProviderStateListener
Modifier and Type | Class and Description |
---|---|
protected class |
CompetitionExecutor.CompetitorWrapper |
Modifier | Constructor and Description |
---|---|
protected |
CompetitionExecutor(IAsyncHandlerProvider asyncHandlerProvider) |
Modifier and Type | Method and Description |
---|---|
T |
await(long timeout,
TimeUnit unit) |
boolean |
isCompleted() |
void |
onClosed()
Called when the
IAsyncHandlerProvider is closed |
protected void |
start(T[] competitors,
long idleDelay,
String name) |
protected abstract CompetitionExecutor.CompetitorWrapper |
wrapCompetitor(T competitor) |
protected CompetitionExecutor(IAsyncHandlerProvider asyncHandlerProvider)
protected abstract CompetitionExecutor.CompetitorWrapper wrapCompetitor(T competitor)
public void onClosed()
IAsyncHandlerProviderStateListener
IAsyncHandlerProvider
is closedonClosed
in interface IAsyncHandlerProviderStateListener
public boolean isCompleted()
public T await(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException
Copyright © GigaSpaces.