Package io.trino.memory.context
Interface MemoryAllocationValidator
public interface MemoryAllocationValidator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidreserveMemory(String allocationTag, long delta) Check if memory can be reserved.booleantryReserveMemory(String allocationTag, long delta) Check if memory can be reserved.
-
Field Details
-
NO_MEMORY_VALIDATION
-
-
Method Details
-
reserveMemory
Check if memory can be reserved. Account for reserved memory if reservation is possible. Throw exception otherwise. -
tryReserveMemory
Check if memory can be reserved. Account for reserved memory if reservation is possible and return true. Return false otherwise.
-