Trait

com.twitter.zk

AsyncCallbackPromise

Related Doc: package zk

Permalink

trait AsyncCallbackPromise[T] extends Promise[T]

Mix-in to make an AsyncCallback a Promise

Linear Supertypes
Promise[T], Updatable[Try[T]], Responder[T], Future[T], Awaitable[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncCallbackPromise
  2. Promise
  3. Updatable
  4. Responder
  5. Future
  6. Awaitable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addEventListener(listener: FutureEventListener[_ >: T]): Future[T]

    Permalink
    Definition Classes
    Future
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def become(other: Future[T]): Unit

    Permalink
    Definition Classes
    Promise
  7. def before[B](f: ⇒ Future[B])(implicit ev: <:<[AsyncCallbackPromise.this.type, Future[Unit]]): Future[B]

    Permalink
    Definition Classes
    Future
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def compress(): Promise[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Promise
  10. final def continue(k: K[T]): Unit

    Permalink
    Attributes
    protected[com.twitter.util]
    Definition Classes
    Promise → Responder
    Annotations
    @tailrec()
  11. def delayed(howlong: Duration)(implicit timer: Timer): Future[T]

    Permalink
    Definition Classes
    Future
  12. final def depth: Short

    Permalink
    Attributes
    protected[com.twitter.util]
    Definition Classes
    Promise → Responder
  13. final def detach(k: K[T]): Boolean

    Permalink
    Attributes
    protected[com.twitter.util.Promise]
    Definition Classes
    Promise
    Annotations
    @tailrec()
  14. def ensure(f: ⇒ Unit): Future[T]

    Permalink
    Definition Classes
    Future
  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def filter(p: (T) ⇒ Boolean): Future[T]

    Permalink
    Definition Classes
    Future
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap[B](f: (T) ⇒ Future[B]): Future[B]

    Permalink
    Definition Classes
    Future
  20. def flatten[B](implicit ev: <:<[T, Future[B]]): Future[B]

    Permalink
    Definition Classes
    Future
  21. def foreach(k: (T) ⇒ Unit): Future[T]

    Permalink
    Definition Classes
    Future
  22. final def forwardInterruptsTo(other: Future[_]): Unit

    Permalink
    Definition Classes
    Promise
    Annotations
    @tailrec()
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def handle[B >: T](rescueException: PartialFunction[Throwable, B]): Future[B]

    Permalink
    Definition Classes
    Future
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def interruptible(): Future[T]

    Permalink
    Definition Classes
    Future
  27. def isDefined: Boolean

    Permalink
    Definition Classes
    Promise → Future
  28. def isDone(implicit ev: <:<[AsyncCallbackPromise.this.type, Future[Unit]]): Boolean

    Permalink
    Definition Classes
    Future
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def isInterrupted: Option[Throwable]

    Permalink
    Definition Classes
    Promise
  31. def isReady(implicit permit: CanAwait): Boolean

    Permalink
    Definition Classes
    Promise → Awaitable
  32. def join[B](other: Future[B]): Future[(T, B)]

    Permalink
    Definition Classes
    Future
  33. def liftToTry: Future[Try[T]]

    Permalink
    Definition Classes
    Future
  34. final def link(target: Promise[T]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Promise
    Annotations
    @tailrec()
  35. def map[B](f: (T) ⇒ B): Future[B]

    Permalink
    Definition Classes
    Future
  36. def mask(pred: PartialFunction[Throwable, Boolean]): Future[T]

    Permalink
    Definition Classes
    Future
  37. def masked: Future[T]

    Permalink
    Definition Classes
    Future
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. def onFailure(fn: (Throwable) ⇒ Unit): Future[T]

    Permalink
    Definition Classes
    Future
  42. def onSuccess(f: (T) ⇒ Unit): Future[T]

    Permalink
    Definition Classes
    Future
  43. def or[U >: T](other: Future[U]): Future[U]

    Permalink
    Definition Classes
    Future
  44. final def parent: Promise[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Promise → Responder
  45. def poll: Option[Try[T]]

    Permalink
    Definition Classes
    Promise → Future
  46. def process(rc: Int, path: String)(result: ⇒ T): Unit

    Permalink

    Process result iff rc is OK; otherwise throw a KeeperException.

    Process result iff rc is OK; otherwise throw a KeeperException.

    Attributes
    protected
  47. def proxyTo[B >: T](other: Promise[B]): Unit

    Permalink
    Definition Classes
    Future
  48. final def raise(intr: Throwable): Unit

    Permalink
    Definition Classes
    Promise → Future
    Annotations
    @tailrec()
  49. def raiseWithin(timer: Timer, timeout: Duration, exc: Throwable): Future[T]

    Permalink
    Definition Classes
    Future
  50. def raiseWithin(timeout: Duration, exc: Throwable)(implicit timer: Timer): Future[T]

    Permalink
    Definition Classes
    Future
  51. def raiseWithin(timeout: Duration)(implicit timer: Timer): Future[T]

    Permalink
    Definition Classes
    Future
  52. def ready(timeout: Duration)(implicit permit: CanAwait): AsyncCallbackPromise.this.type

    Permalink
    Definition Classes
    Promise → Awaitable
    Annotations
    @throws( ... ) @throws( ... )
  53. def rescue[B >: T](rescueException: PartialFunction[Throwable, Future[B]]): Future[B]

    Permalink
    Definition Classes
    Future
  54. def respond(k: (Try[T]) ⇒ Unit): Future[T]

    Permalink
    Definition Classes
    Responder
  55. def result(timeout: Duration)(implicit permit: CanAwait): T

    Permalink
    Definition Classes
    Promise → Awaitable
    Annotations
    @throws( classOf[java.lang.Exception] )
  56. def select[U >: T](other: Future[U]): Future[U]

    Permalink
    Definition Classes
    Future
  57. def setDone()(implicit ev: <:<[AsyncCallbackPromise.this.type, Promise[Unit]]): Boolean

    Permalink
    Definition Classes
    Promise
  58. def setException(throwable: Throwable): Unit

    Permalink
    Definition Classes
    Promise
  59. final def setInterruptHandler(f: PartialFunction[Throwable, Unit]): Unit

    Permalink
    Definition Classes
    Promise
    Annotations
    @tailrec()
  60. def setValue(result: T): Unit

    Permalink
    Definition Classes
    Promise
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  62. def toJavaFuture: Future[_ <: T]

    Permalink
    Definition Classes
    Future
  63. def toOffer: Offer[Try[T]]

    Permalink
    Definition Classes
    Future
  64. def toString(): String

    Permalink
    Definition Classes
    Promise → AnyRef → Any
  65. def transform[B](f: (Try[T]) ⇒ Future[B]): Future[B]

    Permalink
    Definition Classes
    Responder
  66. def transformedBy[B](transformer: FutureTransformer[T, B]): Future[B]

    Permalink
    Definition Classes
    Future
  67. def unit: Future[Unit]

    Permalink
    Definition Classes
    Future
  68. def update(result: Try[T]): Unit

    Permalink
    Definition Classes
    Promise → Updatable
  69. final def updateIfEmpty(result: Try[T]): Boolean

    Permalink
    Definition Classes
    Promise
    Annotations
    @tailrec()
  70. def voided: Future[Void]

    Permalink
    Definition Classes
    Future
  71. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. def willEqual[B](that: Future[B]): Future[Boolean]

    Permalink
    Definition Classes
    Future
  75. def withFilter(p: (T) ⇒ Boolean): Future[T]

    Permalink
    Definition Classes
    Future
  76. def within(timer: Timer, timeout: Duration, exc: ⇒ Throwable): Future[T]

    Permalink
    Definition Classes
    Future
  77. def within(timer: Timer, timeout: Duration): Future[T]

    Permalink
    Definition Classes
    Future
  78. def within(timeout: Duration)(implicit timer: Timer): Future[T]

    Permalink
    Definition Classes
    Future

Deprecated Value Members

  1. def apply(timeout: Duration): T

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result

  2. def apply(): T

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result

  3. def cancel(): Unit

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.0.0) Provided for API compatibility; use raise() instead.

  4. final def get(timeout: Duration): Try[T]

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result(future.liftToTry)

  5. def get(): T

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result

  6. def isReturn: Boolean

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result(future.liftToTry).isReturn

  7. def isThrow: Boolean

    Permalink
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 6.2.x) Use Await.result(future.liftToTry).isThrow

Inherited from Promise[T]

Inherited from Updatable[Try[T]]

Inherited from Responder[T]

Inherited from Future[T]

Inherited from Awaitable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped