Packages

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
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. 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.

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

    Bijection from FuturePool to ExecutionContext

  11. 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.

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. implicit def tryBijection[A, B](implicit bij: ImplicitBijection[A, B]): Bijection[Try[A], Try[B]]

    Bijection on Try.

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

  21. 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 bijection throws, the result will be a throw

  22. implicit def twitter2CompletableFutureBijection[A]: Bijection[Future[A], CompletableFuture[A]]

    Bijection between java completable futures and twitter futures.

  23. 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.
  24. 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.

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

    Bijection between twitter and scala style Futures

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

    Bijection between twitter and scala style Trys

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. object Owned
  31. object Shared

Inherited from AnyRef

Inherited from Any

Ungrouped