public interface SlotProvider
It supports two allocating modes:
Future.getNow(Object)
to get the allocated slot.Modifier and Type | Method and Description |
---|---|
Future<SimpleSlot> |
allocateSlot(ScheduledUnit task,
boolean allowQueued)
Allocating slot with specific requirement.
|
Future<SimpleSlot> allocateSlot(ScheduledUnit task, boolean allowQueued)
task
- The task to allocate the slot forallowQueued
- Whether allow the task be queued if we do not have enough resourceCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.