Package io.trino.operator
Class TaskAllocationValidator
- java.lang.Object
-
- io.trino.operator.TaskAllocationValidator
-
- All Implemented Interfaces:
MemoryAllocationValidator
@ThreadSafe public class TaskAllocationValidator extends Object implements MemoryAllocationValidator
-
-
Field Summary
-
Fields inherited from interface io.trino.memory.context.MemoryAllocationValidator
NO_MEMORY_VALIDATION
-
-
Constructor Summary
Constructors Constructor Description TaskAllocationValidator(io.airlift.units.DataSize memoryLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreserveMemory(String allocationTag, long delta)booleantryReserveMemory(String allocationTag, long delta)
-
-
-
Method Detail
-
reserveMemory
public void reserveMemory(String allocationTag, long delta)
- Specified by:
reserveMemoryin interfaceMemoryAllocationValidator
-
tryReserveMemory
public boolean tryReserveMemory(String allocationTag, long delta)
- Specified by:
tryReserveMemoryin interfaceMemoryAllocationValidator
-
-