c

com.twitter.zk

LiftableFuture

class LiftableFuture[T] extends AnyRef

Allows Future[T] to be mapped to Future[Try[T]]. This is particularly useful in lifting KeepereException.NoNodeExceptions for ZOp.watch().

Attributes
protected
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LiftableFuture
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LiftableFuture(f: Future[T])

Value Members

  1. def liftFailure: Future[Try[T]]

    Lift all errors to a Throw

  2. def liftKeeperException: Future[Try[T]]

    Lift all KeeperExceptions to a Throw

  3. def liftNoNode: Future[Try[T]]

    Lift failures when a watch would have been successfully installed

  4. def liftSuccess: Future[Return[T]]

    Lift a value to a Return.