final class LazySeqBuilder[A] extends LazySeqBuilderBase[A]

A LazySeq producer/consumer pair that uses a BlockingQueue

I think this is Thread-Safe

Self Type
LazySeqBuilder[A]
Linear Supertypes
LazySeqBuilderBase[A], Logging, Closeable, AutoCloseable, Builder[A, LazySeq[A]], Growable[A], Clearable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LazySeqBuilder
  2. LazySeqBuilderBase
  3. Logging
  4. Closeable
  5. AutoCloseable
  6. Builder
  7. Growable
  8. Clearable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LazySeqBuilder(queueSize: Int = 16, shutdownJVMOnUncaughtException: Boolean = false)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++=(xs: TraversableOnce[A]): LazySeqBuilder.this.type
    Definition Classes
    Growable
  4. final def +=(v: A): LazySeqBuilder.this.type
    Definition Classes
    LazySeqBuilderBase → Builder → Growable
  5. def +=(elem1: A, elem2: A, elems: A*): LazySeqBuilder.this.type
    Definition Classes
    Growable
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def abort(): Unit

    This will abort both the producer and consumer possibly removing items from the queue to make room for our END_OF_QUEUE marker.

  8. final def abortCheck(): Unit
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  9. def abortConsumer(): Unit
  10. def abortProducer(): Unit
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def await(): Unit

    Wait for both the producer and consumer threads (if any) to finish

  13. def awaitConsumer(): Unit

    Wait for the consumer thread (if any) to finish

  14. def awaitProducer(): Unit

    Wait for the producer thread (if any) to finish

  15. def clear(): Unit
    Definition Classes
    LazySeqBuilder → Builder → Growable → Clearable
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  17. def close(): Unit

    Note: It's not clear what the correct behavior of this method is.

    Note: It's not clear what the correct behavior of this method is. It will currently block until the producer/consumer threads have cleanly finished.

    Definition Classes
    LazySeqBuilder → Closeable → AutoCloseable
  18. def closeConsumer(): Unit
  19. def closeProducer(): Unit
  20. var closed: Boolean
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  21. lazy val closedWarning: Unit
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def isProducerOrConsumerThread(): Boolean
    Attributes
    protected
  29. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
    Annotations
    @transient()
  30. def mapResult[NewTo](f: (LazySeq[A]) ⇒ NewTo): Builder[A, NewTo]
    Definition Classes
    Builder
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. val queue: BlockingQueue[AnyRef]
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  35. def result(): LazySeq[A]
    Definition Classes
    LazySeqBuilder → Builder
  36. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit
    Definition Classes
    Builder
  37. def sizeHint(coll: TraversableLike[_, _]): Unit
    Definition Classes
    Builder
  38. def sizeHint(size: Int): Unit
    Definition Classes
    Builder
  39. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit
    Definition Classes
    Builder
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. val uniqueId: Int
    Attributes
    protected
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. def withConsumerThread(f: (LazySeq[A]) ⇒ Unit): LazySeqBuilder.this.type
  47. def withProducerThread(f: (Growable[A]) ⇒ Unit): LazySeqBuilder.this.type

    Run the function in a separate producer thread.

    Run the function in a separate producer thread. Should only be called once since it will close the Builder when the thread finishes.

  48. object lazySeq extends LazySeq[A] with Closeable

Inherited from LazySeqBuilderBase[A]

Inherited from Logging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Builder[A, LazySeq[A]]

Inherited from Growable[A]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Ungrouped