akka.routing

DefaultResizer

case class DefaultResizer(lowerBound: Int = 1, upperBound: Int = 10, pressureThreshold: Int = 1, rampupRate: Double = 0.2, backoffThreshold: Double = 0.3, backoffRate: Double = 0.1, stopDelay: FiniteDuration = ..., messagesPerResize: Int = 10) extends Resizer with Product with Serializable

Annotations
@SerialVersionUID( 1L )
Linear Supertypes
Serializable, Serializable, Product, Equals, Resizer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultResizer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Resizer
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultResizer(lower: Int, upper: Int)

    Java API constructor for default values except bounds.

  2. new DefaultResizer(lowerBound: Int = 1, upperBound: Int = 10, pressureThreshold: Int = 1, rampupRate: Double = 0.2, backoffThreshold: Double = 0.3, backoffRate: Double = 0.1, stopDelay: FiniteDuration = ..., messagesPerResize: Int = 10)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (DefaultResizer, B)

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to ArrowAssoc[DefaultResizer] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def backoff(pressure: Int, capacity: Int): Int

    Computes a proposed negative (or zero) capacity delta using the configured backoffThreshold and backoffRate

    Computes a proposed negative (or zero) capacity delta using the configured backoffThreshold and backoffRate

    pressure

    the current number of busy routees

    capacity

    the current number of total routees

    returns

    proposed decrease in capacity (as a negative number)

  10. val backoffRate: Double

  11. val backoffThreshold: Double

  12. def capacity(routees: IndexedSeq[ActorRef]): Int

    Returns the overall desired change in resizer capacity.

    Returns the overall desired change in resizer capacity. Positive value will add routees to the resizer. Negative value will remove routees from the resizer.

    routees

    The current actor in the resizer

    returns

    the number of routees by which the resizer should be adjusted (positive, negative or zero)

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def ensuring(cond: (DefaultResizer) ⇒ Boolean, msg: ⇒ Any): DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to Ensuring[DefaultResizer] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (DefaultResizer) ⇒ Boolean): DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to Ensuring[DefaultResizer] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to Ensuring[DefaultResizer] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to Ensuring[DefaultResizer] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def filter(pressure: Int, capacity: Int): Int

    This method can be used to smooth the capacity delta by considering the current pressure and current capacity.

    This method can be used to smooth the capacity delta by considering the current pressure and current capacity.

    pressure

    current number of busy routees

    capacity

    current number of routees

    returns

    proposed change in the capacity

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

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

    Definition Classes
    Any
  24. def isTimeForResize(messageCounter: Long): Boolean

    Is it time for resizing.

    Is it time for resizing. Typically implemented with modulo of nth message, but could be based on elapsed time or something else. The messageCounter starts with 0 for the initial resize and continues with 1 for the first message. Make sure to perform initial resize before first message (messageCounter == 0), because there is no guarantee that resize will be done when concurrent messages are in play.

    CAUTION: this method is invoked from the thread which tries to send a message to the pool, i.e. the ActorRef.!() method, hence it may be called concurrently.

    Definition Classes
    DefaultResizerResizer
  25. val lowerBound: Int

  26. val messagesPerResize: Int

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def pressure(routees: IndexedSeq[ActorRef]): Int

    Number of routees considered busy, or above 'pressure level'.

    Number of routees considered busy, or above 'pressure level'.

    Implementation depends on the value of pressureThreshold (default is 1).

    • 0: number of routees currently processing a message.
    • 1: number of routees currently processing a message has some messages in mailbox.
    • > 1: number of routees with at least the configured pressureThreshold messages in their mailbox. Note that estimating mailbox size of default UnboundedMailbox is O(N) operation.
    routees

    the current resizer of routees

    returns

    number of busy routees, between 0 and routees.size

  31. val pressureThreshold: Int

  32. def rampup(pressure: Int, capacity: Int): Int

    Computes a proposed positive (or zero) capacity delta using the configured rampupRate.

    Computes a proposed positive (or zero) capacity delta using the configured rampupRate.

    pressure

    the current number of busy routees

    capacity

    the current number of total routees

    returns

    proposed increase in capacity

  33. val rampupRate: Double

  34. def resize(routeeProvider: RouteeProvider): Unit

    Decide if the capacity of the router need to be changed.

    Decide if the capacity of the router need to be changed. Will be invoked when isTimeForResize returns true and no other resize is in progress. Create and register more routees with routeeProvider.registerRoutees(newRoutees) or remove routees with routeeProvider.unregisterRoutees(abandonedRoutees) and sending akka.actor.PoisonPill to them.

    This method is invoked only in the context of the Router actor in order to safely create/stop children.

    Definition Classes
    DefaultResizerResizer
  35. val stopDelay: FiniteDuration

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. val upperBound: Int

  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def [B](y: B): (DefaultResizer, B)

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to ArrowAssoc[DefaultResizer] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (defaultResizer: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (defaultResizer: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to ArrowAssoc[DefaultResizer] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (defaultResizer: ArrowAssoc[DefaultResizer]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: DefaultResizer

    Implicit information
    This member is added by an implicit conversion from DefaultResizer to Ensuring[DefaultResizer] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (defaultResizer: Ensuring[DefaultResizer]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Resizer

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DefaultResizer to StringAdd

Inherited by implicit conversion any2stringfmt from DefaultResizer to StringFormat

Inherited by implicit conversion any2ArrowAssoc from DefaultResizer to ArrowAssoc[DefaultResizer]

Inherited by implicit conversion any2Ensuring from DefaultResizer to Ensuring[DefaultResizer]

Ungrouped