object RootMonitor extends Monitor
- Alphabetic
- By Inheritance
- RootMonitor
- Monitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 andThen(next: Monitor): Monitor
A new monitor which first handles the exception with
this
, then passes it ontonext
unconditionally.A new monitor which first handles the exception with
this
, then passes it ontonext
unconditionally. The new monitor handles the exception if eitherthis
ornext
does.- Definition Classes
- Monitor
- def apply(f: => Unit): Unit
Run
f
inside of the monitor context.Run
f
inside of the monitor context. Iff
throws an exception - directly or not - it is handled by this monitor.- Definition Classes
- Monitor
- 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 getInstance: Monitor
Java-friendly API to get this instance
- def handle(exc: Throwable): Boolean
Attempt to handle the exception
exc
.Attempt to handle the exception
exc
.- returns
whether the exception was handled by this Monitor
- Definition Classes
- RootMonitor → Monitor
- 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()
- def orElse(next: Monitor): Monitor
A new monitor which, if
this
fails to handle the exception, attempts to letnext
handle it.A new monitor which, if
this
fails to handle the exception, attempts to letnext
handle it.- Definition Classes
- Monitor
- def set(m: Monitor): Unit
Set a custom monitor
m
as the root monitor.Set a custom monitor
m
as the root monitor. Ifm
doesn't handle an exception, it'll fallback to the original root monitor. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryHandle(exc: Throwable): Try[Unit]
An implementation widget: attempts to handle
exc
returning acom.twitter.util.Try[Unit]
.An implementation widget: attempts to handle
exc
returning acom.twitter.util.Try[Unit]
. If the exception is unhandled, we returnThrow(exc)
, if the handler throws an exception, we wrap it in a MonitorException.- Attributes
- protected
- Definition Classes
- Monitor
- 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()