com.twitter.finagle

Status

Related Docs: trait Status | package finagle

object Status

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

(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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ClosedException extends Exception

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. 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.

  5. 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.)

  6. 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.

  7. implicit val StatusOrdering: Ordering[Status]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. 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.

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

    A composite status indicating the most healthy of the two.

  11. 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

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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.

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

    A composite status indicating the least healthy of the two.

  29. 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

Inherited from AnyRef

Inherited from Any

Ungrouped