com.twitter.bijection.twitter_util

UtilBijections

trait UtilBijections extends AnyRef

Bijection for mapping twitter-util's Future and Try onto other types.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UtilBijections
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Owned

  7. object Shared

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. implicit def futureBijection[A, B](implicit bij: ImplicitBijection[A, B]): Bijection[Future[A], Future[B]]

    Bijection on Twitter Future if the bijection throws, the result will be a Throw.

  14. implicit def futurePoolExecutionContextBijection: Bijection[FuturePool, ExecutionContext]

    Bijection from FuturePool to ExecutionContext

  15. implicit def futureScalaBijection[A, B](implicit bij: ImplicitBijection[A, B], executor: ExecutionContext): Bijection[Future[A], Future[B]]

    Bijection on Scala Future if the bijection throws, the result will be a Throw.

  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. implicit def tryBijection[A, B](implicit bij: ImplicitBijection[A, B]): Bijection[Try[A], Try[B]]

    Bijection on Try.

    Bijection on Try. If the the bijection throws, the result will be a throw

  25. implicit def tryScalaBijection[A, B](implicit bij: ImplicitBijection[A, B]): Bijection[Try[A], Try[B]]

    Bijection on scala Try.

    Bijection on scala Try. If the the bijection throws, the result will be a throw

  26. implicit def twitter2JavaFutureBijection[A](implicit converter: JavaFutureConverter): Bijection[Future[A], Future[A]]

    Bijection between java futures and twitter futures.

    Bijection between java futures and twitter futures. An implicit JavaFutureConverter is needed, two strategies are available out of the box:

    • FuturePoolJavaFutureConverter which is based on a FuturePool and which will create one thread per future. To favor if there aren't too many futures to convert and one cares about latency.
    • TimerJavaFutureConverter which is based on a com.twitter.util.Timer which will create a task which will check every checkFrequency if the java future is completed, one thread will be used for every conversion. To favor if there are a lot of futures to convert and one cares less about the latency induced by checkFrequency.
  27. def twitter2JavaFutureInjection[A]: Injection[Future[A], Future[A]]

    Injection from twitter futures to java futures.

    Injection from twitter futures to java futures. Will throw when inverting back from java future to twitter future if the java future is not done.

  28. implicit def twitter2ScalaFuture[A](implicit executor: ExecutionContext): Bijection[Future[A], Future[A]]

    Bijection between twitter and scala style Futures

  29. implicit def twitter2ScalaTry[A]: Bijection[Try[A], Try[A]]

    Bijection between twitter and scala style Trys

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped