Package org.apache.calcite.util
Interface ClosableAllocationOwner
-
- All Superinterfaces:
ClosableAllocation
- All Known Implementing Classes:
CompoundClosableAllocation
public interface ClosableAllocationOwner extends ClosableAllocation
ClosableAllocationOwner represents an object which can take ownership of ClosableAllocations and guarantee that they will be cleaned up correctly when its own closeAllocation() is called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAllocation(ClosableAllocation allocation)
Assigns ownership of a ClosableAllocation to this owner.-
Methods inherited from interface org.apache.calcite.util.ClosableAllocation
closeAllocation
-
-
-
-
Method Detail
-
addAllocation
void addAllocation(ClosableAllocation allocation)
Assigns ownership of a ClosableAllocation to this owner.- Parameters:
allocation
- the ClosableAllocation to take over
-
-