|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.lifecycle.CompletableContainer
public class CompletableContainer
A container for completable objects that require complete and release calls to be performed as a unit.
Constructor Summary | |
---|---|
CompletableContainer()
Creates a new instance. |
Method Summary | ||
---|---|---|
|
add(T object)
Adds a new object to be managed. |
|
void |
complete()
Ensures that all information is fully persisted. |
|
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompletableContainer()
Method Detail |
---|
public <T extends Completable> T add(T object)
T
- The type of object being stored.object
- The object to be stored.
public void complete()
complete
in interface Completable
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |