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]
- Alphabetic
- By Inheritance
- LazySeqBuilder
- LazySeqBuilderBase
- Logging
- Closeable
- AutoCloseable
- Builder
- Growable
- Clearable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++=(xs: TraversableOnce[A]): LazySeqBuilder.this.type
- Definition Classes
- Growable
-
final
def
+=(v: A): LazySeqBuilder.this.type
- Definition Classes
- LazySeqBuilderBase → Builder → Growable
-
def
+=(elem1: A, elem2: A, elems: A*): LazySeqBuilder.this.type
- Definition Classes
- Growable
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
abortCheck(): Unit
- Attributes
- protected[this]
- Definition Classes
- LazySeqBuilder → LazySeqBuilderBase
- def abortConsumer(): Unit
- def abortProducer(): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await(): Unit
Wait for both the producer and consumer threads (if any) to finish
-
def
awaitConsumer(): Unit
Wait for the consumer thread (if any) to finish
-
def
awaitProducer(): Unit
Wait for the producer thread (if any) to finish
-
def
clear(): Unit
- Definition Classes
- LazySeqBuilder → Builder → Growable → Clearable
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- def closeConsumer(): Unit
- def closeProducer(): Unit
-
var
closed: Boolean
- Attributes
- protected[this]
- Definition Classes
- LazySeqBuilder → LazySeqBuilderBase
-
lazy val
closedWarning: Unit
- Attributes
- protected[this]
- Definition Classes
- LazySeqBuilder → LazySeqBuilderBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isProducerOrConsumerThread(): Boolean
- Attributes
- protected
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- Annotations
- @transient()
-
def
mapResult[NewTo](f: (LazySeq[A]) ⇒ NewTo): Builder[A, NewTo]
- Definition Classes
- Builder
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
queue: BlockingQueue[AnyRef]
- Attributes
- protected[this]
- Definition Classes
- LazySeqBuilder → LazySeqBuilderBase
-
def
result(): LazySeq[A]
- Definition Classes
- LazySeqBuilder → Builder
-
def
sizeHint(coll: TraversableLike[_, _], delta: Int): Unit
- Definition Classes
- Builder
-
def
sizeHint(coll: TraversableLike[_, _]): Unit
- Definition Classes
- Builder
-
def
sizeHint(size: Int): Unit
- Definition Classes
- Builder
-
def
sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit
- Definition Classes
- Builder
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
uniqueId: Int
- Attributes
- protected
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withConsumerThread(f: (LazySeq[A]) ⇒ Unit): LazySeqBuilder.this.type
-
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.
- object lazySeq extends LazySeq[A] with Closeable