|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.util.CompoundClosableAllocation
public class CompoundClosableAllocation
CompoundClosableAllocation represents a collection of ClosableAllocations which share a common lifecycle. It guarantees that allocations are closed in the reverse order in which they were added.
Field Summary | |
---|---|
protected List<ClosableAllocation> |
allocations
List of owned ClosableAllocation objects. |
Constructor Summary | |
---|---|
CompoundClosableAllocation()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<ClosableAllocation> allocations
Constructor Detail |
---|
public CompoundClosableAllocation()
Method Detail |
---|
public void addAllocation(ClosableAllocation allocation)
ClosableAllocationOwner
addAllocation
in interface ClosableAllocationOwner
allocation
- the ClosableAllocation to take overpublic void closeAllocation()
ClosableAllocation
closeAllocation
in interface ClosableAllocation
public boolean forgetAllocation(ClosableAllocation allocation)
allocation
- the allocation to forget
public boolean hasAllocations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |