Class/Object

fm.lazyseq

LazySeqBuilder

Related Docs: object LazySeqBuilder | package lazyseq

Permalink

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)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++=(xs: TraversableOnce[A]): LazySeqBuilder.this.type

    Permalink
    Definition Classes
    Growable
  4. final def +=(v: A): LazySeqBuilder.this.type

    Permalink
    Definition Classes
    LazySeqBuilderBase → Builder → Growable
  5. def +=(elem1: A, elem2: A, elems: A*): LazySeqBuilder.this.type

    Permalink
    Definition Classes
    Growable
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def abort(): Unit

    Permalink

    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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  9. def abortConsumer(): Unit

    Permalink
  10. def abortProducer(): Unit

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def await(): Unit

    Permalink

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

  13. def awaitConsumer(): Unit

    Permalink

    Wait for the consumer thread (if any) to finish

  14. def awaitProducer(): Unit

    Permalink

    Wait for the producer thread (if any) to finish

  15. def clear(): Unit

    Permalink
    Definition Classes
    LazySeqBuilder → Builder → Growable → Clearable
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def close(): Unit

    Permalink

    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

    Permalink
  19. def closeProducer(): Unit

    Permalink
  20. var closed: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  21. lazy val closedWarning: Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def isProducerOrConsumerThread(): Boolean

    Permalink
    Attributes
    protected
  29. object lazySeq extends LazySeq[A] with Closeable

    Permalink
  30. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def mapResult[NewTo](f: (LazySeq[A]) ⇒ NewTo): Builder[A, NewTo]

    Permalink
    Definition Classes
    Builder
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. val queue: BlockingQueue[AnyRef]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazySeqBuilderLazySeqBuilderBase
  36. def result(): LazySeq[A]

    Permalink
    Definition Classes
    LazySeqBuilder → Builder
  37. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit

    Permalink
    Definition Classes
    Builder
  38. def sizeHint(coll: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  39. def sizeHint(size: Int): Unit

    Permalink
    Definition Classes
    Builder
  40. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit

    Permalink
    Definition Classes
    Builder
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. val uniqueId: Int

    Permalink
    Attributes
    protected
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def withConsumerThread(f: (LazySeq[A]) ⇒ Unit): LazySeqBuilder.this.type

    Permalink
  48. def withProducerThread(f: (Growable[A]) ⇒ Unit): LazySeqBuilder.this.type

    Permalink

    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.

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