Object/Class

com.twitter.util

Activity

Related Docs: class Activity | package util

Permalink

object Activity extends Serializable

Note: There is a Java-friendly API for this object: com.twitter.util.Activities.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Activity
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Failed(exc: Throwable) extends State[Nothing] with Product with Serializable

    Permalink

    The activity has failed, with exception exc.

  2. case class Ok[T](t: T) extends State[T] with Product with Serializable

    Permalink

    The activity is running with a current value of t.

  3. sealed trait State[+T] extends AnyRef

    Permalink

    An ADT describing the state of an Activity.

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 Pending extends State[Nothing]

    Permalink

    The activity is pending output.

  5. def apply[T](states: Event[State[T]]): Activity[T]

    Permalink

    Constructs an Activity from a state Event.

  6. def apply[T](): (Activity[T], Witness[Try[T]])

    Permalink

    Create a new pending activity.

    Create a new pending activity. The activity's state is updated by the given witness.

  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def collect[T <: AnyRef](activities: List[Activity[T]]): Activity[List[T]]

    Permalink

    A Java friendly method for Activity.collect().

  10. def collect[T](activities: <error>): Activity[<error>]

    Permalink

    [use case]

    [use case]
    Full Signature

    def collect[T, CC[X] <: Traversable[X]](acts: CC[Activity[T]])(implicit arg0: ClassTag[T], newBuilder: CanBuild[T, CC[T]]): Activity[CC[T]]

  11. def collectIndependent[T](activities: <error>): Activity[<error>]

    Permalink

    [use case]

    [use case]
    Full Signature

    def collectIndependent[T, CC[X] <: Traversable[X]](acts: CC[Activity[T]])(implicit arg0: ClassTag[T], newBuilder: CanBuild[T, CC[T]]): Activity[CC[T]]

  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def exception(exc: Throwable): Activity[Nothing]

    Permalink

    Create a new static activity with exception exc.

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def future[T](f: Future[T]): Activity[T]

    Permalink

    Create an activity backed by a com.twitter.util.Future.

    Create an activity backed by a com.twitter.util.Future.

    The resultant Activity is pending until the original Future is satisfied. Future success or failure corresponds to the expected Activity.Ok or Activity.Failed result.

    Closure of observations of the run Var of the resultant Activity is not propagated to the original Future. That is to say, invoking close() on observations of Activity.run will not result in the cancellation of the original Future.

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

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

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

    Permalink
    Definition Classes
    Any
  20. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q], r: Activity[R], s: Activity[S], t: Activity[T], u: Activity[U], v: Activity[V]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]

    Permalink

    Join 22 Activities.

    Join 22 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  21. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q], r: Activity[R], s: Activity[S], t: Activity[T], u: Activity[U]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]

    Permalink

    Join 21 Activities.

    Join 21 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  22. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q], r: Activity[R], s: Activity[S], t: Activity[T]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]

    Permalink

    Join 20 Activities.

    Join 20 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  23. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q], r: Activity[R], s: Activity[S]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]

    Permalink

    Join 19 Activities.

    Join 19 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  24. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q], r: Activity[R]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]

    Permalink

    Join 18 Activities.

    Join 18 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  25. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P], q: Activity[Q]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]

    Permalink

    Join 17 Activities.

    Join 17 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  26. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O], p: Activity[P]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]

    Permalink

    Join 16 Activities.

    Join 16 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  27. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N], o: Activity[O]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]

    Permalink

    Join 15 Activities.

    Join 15 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  28. def join[A, B, C, D, E, F, G, H, I, J, K, L, M, N](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M], n: Activity[N]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]

    Permalink

    Join 14 Activities.

    Join 14 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  29. def join[A, B, C, D, E, F, G, H, I, J, K, L, M](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L], m: Activity[M]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L, M)]

    Permalink

    Join 13 Activities.

    Join 13 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  30. def join[A, B, C, D, E, F, G, H, I, J, K, L](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K], l: Activity[L]): Activity[(A, B, C, D, E, F, G, H, I, J, K, L)]

    Permalink

    Join 12 Activities.

    Join 12 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  31. def join[A, B, C, D, E, F, G, H, I, J, K](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J], k: Activity[K]): Activity[(A, B, C, D, E, F, G, H, I, J, K)]

    Permalink

    Join 11 Activities.

    Join 11 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  32. def join[A, B, C, D, E, F, G, H, I, J](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I], j: Activity[J]): Activity[(A, B, C, D, E, F, G, H, I, J)]

    Permalink

    Join 10 Activities.

    Join 10 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  33. def join[A, B, C, D, E, F, G, H, I](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H], i: Activity[I]): Activity[(A, B, C, D, E, F, G, H, I)]

    Permalink

    Join 9 Activities.

    Join 9 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  34. def join[A, B, C, D, E, F, G, H](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G], h: Activity[H]): Activity[(A, B, C, D, E, F, G, H)]

    Permalink

    Join 8 Activities.

    Join 8 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  35. def join[A, B, C, D, E, F, G](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F], g: Activity[G]): Activity[(A, B, C, D, E, F, G)]

    Permalink

    Join 7 Activities.

    Join 7 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  36. def join[A, B, C, D, E, F](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E], f: Activity[F]): Activity[(A, B, C, D, E, F)]

    Permalink

    Join 6 Activities.

    Join 6 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  37. def join[A, B, C, D, E](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D], e: Activity[E]): Activity[(A, B, C, D, E)]

    Permalink

    Join 5 Activities.

    Join 5 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  38. def join[A, B, C, D](a: Activity[A], b: Activity[B], c: Activity[C], d: Activity[D]): Activity[(A, B, C, D)]

    Permalink

    Join 4 Activities.

    Join 4 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  39. def join[A, B, C](a: Activity[A], b: Activity[B], c: Activity[C]): Activity[(A, B, C)]

    Permalink

    Join 3 Activities.

    Join 3 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  40. def join[A, B](a: Activity[A], b: Activity[B]): Activity[(A, B)]

    Permalink

    Join 2 Activities.

    Join 2 Activities. The returned Activity is complete when all underlying Activities are nonpending. It fails immediately if any of them do.

  41. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  44. val pending: Activity[Nothing]

    Permalink

    A static Activity that is pending.

  45. def sample[T](act: Activity[T]): T

    Permalink

    Sample given Activity.

  46. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. def value[T](v: T): Activity[T]

    Permalink

    Create a new static activity with value v.

  49. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped