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](): (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.

  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. def collect[T <: AnyRef](activities: List[Activity[T]]): Activity[List[T]]

    Permalink

    A Java friendly method for Activity.collect().

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

    Permalink

    [use case] Collect a collection of activities into an activity of a collection of values.

    [use case]

    Collect a collection of activities into an activity of a collection of values.

    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]]

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

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

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

    Permalink

    Create a new static activity with exception exc.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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.

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

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

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

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

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

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

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

    Permalink

    A static Activity that is pending.

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

    Permalink

    Sample given Activity.

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

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

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

    Permalink

    Create a new static activity with value v.

  26. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. 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