Class DataPostboxSink
java.lang.Object
org.openstreetmap.osmosis.set.v0_6.impl.DataPostboxSink
- All Implemented Interfaces:
AutoCloseable,org.openstreetmap.osmosis.core.lifecycle.Closeable,org.openstreetmap.osmosis.core.lifecycle.Completable,org.openstreetmap.osmosis.core.task.common.Task,org.openstreetmap.osmosis.core.task.v0_6.Initializable,org.openstreetmap.osmosis.core.task.v0_6.Sink
public class DataPostboxSink
extends Object
implements org.openstreetmap.osmosis.core.task.v0_6.Sink
A sink that writes all of its data to a postbox to be read by another thread.
-
Constructor Summary
ConstructorsConstructorDescriptionDataPostboxSink(org.openstreetmap.osmosis.core.store.DataPostbox<org.openstreetmap.osmosis.core.container.v0_6.EntityContainer> postbox) Creates a new instance. -
Method Summary
-
Constructor Details
-
DataPostboxSink
public DataPostboxSink(org.openstreetmap.osmosis.core.store.DataPostbox<org.openstreetmap.osmosis.core.container.v0_6.EntityContainer> postbox) Creates a new instance.- Parameters:
postbox- The postbox to write all incoming data into.
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceorg.openstreetmap.osmosis.core.task.v0_6.Initializable
-
process
public void process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entity) - Specified by:
processin interfaceorg.openstreetmap.osmosis.core.task.v0_6.Sink
-
complete
public void complete()- Specified by:
completein interfaceorg.openstreetmap.osmosis.core.lifecycle.Completable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.openstreetmap.osmosis.core.lifecycle.Closeable
-