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.)
- Alphabetic
- By Inheritance
- Status
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class ClosedException extends Exception with NoStackTrace
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
- implicit val StatusOrdering: Ordering[Status]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def awaitOpen(get: => Status): Unit
A blocking version of whenOpen; this method returns when the status has become Open.
- def best(left: Status, right: Status): Status
A composite status indicating the most healthy of the two.
- def bestOf[T](ts: Iterable[T], status: (T) => Status): Status
The status representing the best of the given statuses extracted by
status
onts
.The status representing the best of the given statuses extracted by
status
onts
.- Note
this may terminate early so don't rely on this method for running side effects on
ts
- 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()
- 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. - def worst(left: Status, right: Status): Status
A composite status indicating the least healthy of the two.
- def worstOf[T](ts: Iterable[T], status: (T) => Status): Status
The status representing the worst of the given statuses extracted by
status
onts
.The status representing the worst of the given statuses extracted by
status
onts
.- Note
this may terminate early so don't rely on this method for running side effects on
ts
- case 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.
- case 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.)
- case 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.