|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.buffer.v0_5.EntityBuffer
public class EntityBuffer
Splits the pipeline so that it can be processed on multiple threads. The input thread to this task stores data in a buffer which blocks if it fills up. This task runs on a new thread which reads data from the buffer and writes it to the destination.
| Constructor Summary | |
|---|---|
EntityBuffer(int bufferCapacity)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
complete()
Ensures that all information is fully persisted. |
void |
process(EntityContainer entityContainer)
Process the entity. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
run()
Sends all input data to the sink. |
void |
setSink(Sink sink)
Sets the osm sink to send data to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityBuffer(int bufferCapacity)
bufferCapacity - The size of the buffer to use.| Method Detail |
|---|
public void process(EntityContainer entityContainer)
process in interface SinkentityContainer - The entity to be processed.public void complete()
complete in interface Completablepublic void release()
release in interface Releasablepublic void setSink(Sink sink)
setSink in interface Sourcesink - The sink for receiving all produced data.public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||