object NumberPoolActor
- Source
- NumberPoolActor.scala
- Alphabetic
- By Inheritance
- NumberPoolActor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class GetAnyNumber() extends Product with Serializable
A message to invoke the current
NumberSelector
's functionality. - final case class GetSpecificNumber(number: Int) extends Product with Serializable
A message to invoke a
SpecificSelector
to acquire the specificnumber
, if it is available in this pool.A message to invoke a
SpecificSelector
to acquire the specificnumber
, if it is available in this pool.- number
the pre-selected number
- final case class GiveNumber(number: Int) extends Product with Serializable
A message to distribute the
number
that was drawn.A message to distribute the
number
that was drawn.- number
the pre-selected number
- final case class NoNumber(ex: Throwable) extends Product with Serializable
- final case class ReturnNumber(number: Int) extends Product with Serializable
A message to invoke the
returnNumber
functionality of the currentNumberSelector
.A message to invoke the
returnNumber
functionality of the currentNumberSelector
.- number
the number
- final case class ReturnNumberResult(number: Int, ex: Option[Throwable]) extends Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def GetSpecificNumber(pool: NumberPool, number: Int): Try[Int]
Use the
SpecificSelector
on this pool to extract a specific object from the pool, if it is included and available.Use the
SpecificSelector
on this pool to extract a specific object from the pool, if it is included and available. Getting a specific number involves creating the appropriate selector and swapping with the current selector. This process may involve re-formatting the underlying number pool array once for each selector.- pool
the
NumberPool
to draw from- number
the number requested
- returns
the number requested, or an error
- See also
NumberSelector.Format
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()