Class FixedLifespanScheduler
- java.lang.Object
-
- io.prestosql.execution.scheduler.group.FixedLifespanScheduler
-
- All Implemented Interfaces:
LifespanScheduler
public class FixedLifespanScheduler extends Object implements LifespanScheduler
SeeLifespanScheduler
about thread safety
-
-
Constructor Summary
Constructors Constructor Description FixedLifespanScheduler(BucketNodeMap bucketNodeMap, List<ConnectorPartitionHandle> partitionHandles, OptionalInt concurrentLifespansPerTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onLifespanFinished(Iterable<Lifespan> newlyCompletedDriverGroups)
com.google.common.util.concurrent.SettableFuture<?>
schedule(SourceScheduler scheduler)
void
scheduleInitial(SourceScheduler scheduler)
-
-
-
Constructor Detail
-
FixedLifespanScheduler
public FixedLifespanScheduler(BucketNodeMap bucketNodeMap, List<ConnectorPartitionHandle> partitionHandles, OptionalInt concurrentLifespansPerTask)
-
-
Method Detail
-
scheduleInitial
public void scheduleInitial(SourceScheduler scheduler)
- Specified by:
scheduleInitial
in interfaceLifespanScheduler
-
onLifespanFinished
public void onLifespanFinished(Iterable<Lifespan> newlyCompletedDriverGroups)
- Specified by:
onLifespanFinished
in interfaceLifespanScheduler
-
schedule
public com.google.common.util.concurrent.SettableFuture<?> schedule(SourceScheduler scheduler)
- Specified by:
schedule
in interfaceLifespanScheduler
-
-