Packages

object Status

Define valid Status! values. They are, in order from most to least healthy:

  • Open
  • Busy
  • Closed

(An scala.math.Ordering is defined in these terms.)

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Status
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class ClosedException extends Exception with NoStackTrace

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit val StatusOrdering: Ordering[Status]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def awaitOpen(get: ⇒ Status): Unit

    A blocking version of whenOpen; this method returns when the status has become Open.

    A blocking version of whenOpen; this method returns when the status has become Open. This call blocks and should only be used outside of Finagle threads to halt progress until the status is Open.

    Exceptions thrown

    [[ClosedException]] if the status becomes Closed.

  7. def best(left: Status, right: Status): Status

    A composite status indicating the most healthy of the two.

  8. def bestOf[T](ts: Iterable[T], status: (T) ⇒ Status): Status

    The status representing the best of the given statuses extracted by status on ts.

    The status representing the best of the given statuses extracted by status on ts.

    Note

    this may terminate early so don't rely on this method for running side effects on ts

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. def whenOpen(get: ⇒ Status): Future[Unit]

    Open returns a com.twitter.util.Future that is satisfied when the status returned by get is Open.

    Open returns a com.twitter.util.Future that is satisfied when the status returned by get is Open. It returns an exceptional com.twitter.util.Future should it be Closed.

    whenOpen polls the underlying status, using exponential backoffs from 1ms to around 1s.

  25. def worst(left: Status, right: Status): Status

    A composite status indicating the least healthy of the two.

  26. def worstOf[T](ts: Iterable[T], status: (T) ⇒ Status): Status

    The status representing the worst of the given statuses extracted by status on ts.

    The status representing the worst of the given statuses extracted by status on ts.

    Note

    this may terminate early so don't rely on this method for running side effects on ts

  27. object Busy extends Status with Product with Serializable

    A busy Service or ServiceFactory is transiently unavailable.

    A busy Service or ServiceFactory is transiently unavailable. A Busy Service or ServiceFactory can be used, but may not provide service immediately.

  28. object Closed extends Status with Product with Serializable

    The Service or ServiceFactory is closed.

    The Service or ServiceFactory is closed. It will never service requests or sessions again. (And should probably be discarded.)

  29. object Open extends Status with Product with Serializable

    An open Service or ServiceFactory is ready to be used.

    An open Service or ServiceFactory is ready to be used. It can service requests or sessions immediately.

Inherited from AnyRef

Inherited from Any

Ungrouped