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 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

      public void initialize(Map<String,Object> metaData)
      Specified by:
      initialize in interface org.openstreetmap.osmosis.core.task.v0_6.Initializable
    • process

      public void process(org.openstreetmap.osmosis.core.container.v0_6.EntityContainer entity)
      Specified by:
      process in interface org.openstreetmap.osmosis.core.task.v0_6.Sink
    • complete

      public void complete()
      Specified by:
      complete in interface org.openstreetmap.osmosis.core.lifecycle.Completable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.openstreetmap.osmosis.core.lifecycle.Closeable