Trait/Object

com.twitter.bijection.twitter_util

UtilBijections

Related Docs: object UtilBijections | package twitter_util

Permalink

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. 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. object Owned

    Permalink
  5. object Shared

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Permalink

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

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

    Permalink

    Bijection from FuturePool to ExecutionContext

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

    Permalink

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

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. implicit def tryBijection[A, B](implicit bij: ImplicitBijection[A, B]): Bijection[Try[A], Try[B]]

    Permalink

    Bijection on Try.

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

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

    Permalink

    Bijection on scala Try.

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

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

    Permalink

    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.
  25. def twitter2JavaFutureInjection[A]: Injection[Future[A], Future[A]]

    Permalink

    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.

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

    Permalink

    Bijection between twitter and scala style Futures

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

    Permalink

    Bijection between twitter and scala style Trys

  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped