public class CompoundClosableAllocation extends Object implements ClosableAllocationOwner
| Modifier and Type | Field and Description |
|---|---|
protected List<ClosableAllocation> |
allocations
List of owned ClosableAllocation objects.
|
| Constructor and Description |
|---|
CompoundClosableAllocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllocation(ClosableAllocation allocation)
Assigns ownership of a ClosableAllocation to this owner.
|
void |
closeAllocation()
Closes this object.
|
boolean |
forgetAllocation(ClosableAllocation allocation)
Forgets an allocation without closing it.
|
boolean |
hasAllocations() |
protected List<ClosableAllocation> allocations
public void addAllocation(ClosableAllocation allocation)
ClosableAllocationOwneraddAllocation in interface ClosableAllocationOwnerallocation - the ClosableAllocation to take overpublic void closeAllocation()
ClosableAllocationcloseAllocation in interface ClosableAllocationpublic boolean forgetAllocation(ClosableAllocation allocation)
allocation - the allocation to forgetpublic boolean hasAllocations()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.