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 Detail

      • addAllocation

        void addAllocation​(ClosableAllocation allocation)
        Assigns ownership of a ClosableAllocation to this owner.
        Parameters:
        allocation - the ClosableAllocation to take over