Class/Object

kanaloa.queue

QueueOfIterator

Related Docs: object QueueOfIterator | package queue

Permalink

class QueueOfIterator[T] extends Queue[T]

Source
Queue.scala
Linear Supertypes
Queue[T], MessageScheduler, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueueOfIterator
  2. Queue
  3. MessageScheduler
  4. ActorLogging
  5. Actor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QueueOfIterator(iterator: Iterator[T], workSettings: WorkSettings, metricsCollector: ActorRef, sendResultsTo: Option[ActorRef] = None)

    Permalink

Type Members

  1. case class InternalState extends Product with Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    Queue
  2. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  5. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  12. def delayedMsg(delay: FiniteDuration, msg: Any, receiver: ActorRef = self): Cancellable

    Permalink
    Definition Classes
    MessageScheduler
  13. final def dispatchWork(state: InternalState, dispatched: Int = 0, retiring: Boolean = false): InternalState

    Permalink

    Dispatch as many as possible work, so by the end either work queue or worker queue should be empty.

    Dispatch as many as possible work, so by the end either work queue or worker queue should be empty. Note that the workers left in the worker queue after dispatch are the only ones that counts as idle workers.

    Attributes
    protected
    Definition Classes
    Queue
    Annotations
    @tailrec()
  14. val enqueuer: ActorRef

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val initialState: InternalState

    Permalink
    Definition Classes
    Queue
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  23. def maybeDelayedMsg(delayO: Option[FiniteDuration], msg: Any, receiver: ActorRef = self): Option[Cancellable]

    Permalink
    Definition Classes
    MessageScheduler
  24. val metricsCollector: ActorRef

    Permalink
    Definition Classes
    QueueOfIterator → Queue
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def onQueuedWorkExhausted(): Unit

    Permalink
    Definition Classes
    QueueOfIterator → Queue
  29. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. def postStop(): Unit

    Permalink
    Definition Classes
    Queue → Actor
  31. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  33. final def processing(state: InternalState): Receive

    Permalink
    Definition Classes
    Queue
  34. final def receive: Receive

    Permalink
    Definition Classes
    Queue → Actor
  35. val reportScheduler: Cancellable

    Permalink
    Definition Classes
    Queue
  36. final def retiring(state: InternalState): Receive

    Permalink
    Definition Classes
    Queue
  37. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  38. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  39. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  40. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  42. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def workBuffered(state: InternalState): Boolean

    Permalink

    Determines if a state indicates the workers pool are all busy.

    Determines if a state indicates the workers pool are all busy. This is different from the default pushing DefaultQueue for a QueueOfIterator, it only gets work when there is at least one queued worker, which means there is a significant chance a second worker comes in before the first worker gets work. This number is still a bit arbitrary though. Obviously we still have to chose an arbitrary number as the threshold of queued workers with which we deem the queue as partially utilized. Todo: Right now we lack the insight of how to set this up correctly so I'd rather have it hard coded for now than allowing our users to tweak it without giving them any guidance

    Definition Classes
    QueueOfIterator → Queue
  47. val workSettings: WorkSettings

    Permalink
    Definition Classes
    QueueOfIterator → Queue

Inherited from Queue[T]

Inherited from MessageScheduler

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped