com.twitter.concurrent

AbstractOffer

abstract class AbstractOffer[T] extends Offer[T]

Abstract Offer class for Java compatibility.

Linear Supertypes
Offer[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AbstractOffer
  2. Offer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractOffer()

Abstract Value Members

  1. abstract def prepare(): Future[Tx[T]]

    Prepare a new transaction.

    Prepare a new transaction. This is the first stage of the 2 phase commit. This is typically only called by the offer implementation directly or by combinators.

    Definition Classes
    Offer

Concrete 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. def ?: Future[T]

    Alias for synchronize.

    Alias for synchronize.

    Definition Classes
    Offer
  7. def ??: T

    Synchronize, blocking for the result.

    Synchronize, blocking for the result.

    Definition Classes
    Offer
  8. def andThen(f: ⇒ Unit): Unit

    Synchronize (discarding the value), and then invoke the given closure.

    Synchronize (discarding the value), and then invoke the given closure. Convenient for loops.

    Definition Classes
    Offer
  9. def apply[U](f: (T) ⇒ U): Offer[U]

    Synonym for map().

    Synonym for map(). Useful in combination with Offer.choose() and Offer.select()

    Definition Classes
    Offer
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def const[U](f: ⇒ U): Offer[U]

    Like {{map}}, but to a constant (call-by-name).

    Like {{map}}, but to a constant (call-by-name).

    Definition Classes
    Offer
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def foreach(f: (T) ⇒ Unit): Unit

    Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value.

    Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value. A receiver can use this to enumerate over all received values.

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

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

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

    Definition Classes
    Any
  20. def map[U](f: (T) ⇒ U): Offer[U]

    Map this offer of type {{T}} into one of type {{U}}.

    Map this offer of type {{T}} into one of type {{U}}. The translation (performed by {{f}}) is done after the {{Offer[T]}} has successfully synchronized.

    Definition Classes
    Offer
  21. def mapConst[U](c: U): Offer[U]

    Java-friendly analog of const().

    Java-friendly analog of const().

    Definition Classes
    Offer
  22. def mapConstFunction[U](f: ⇒ U): Offer[U]

    Java-friendly analog of const().

    Java-friendly analog of const().

    Definition Classes
    Offer
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def or[U](other: Offer[U]): Offer[Either[T, U]]

    Definition Classes
    Offer
  27. def orElse[U >: T](other: Offer[U]): Offer[U]

    An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead.

    An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead. This is useful for providing default values. Eg.:

    offer orElse Offer.const { computeDefaultValue() }
    Definition Classes
    Offer
  28. def sync(): Future[T]

    Synchronizes this offer, returning a future representing the result of the synchronization.

    Synchronizes this offer, returning a future representing the result of the synchronization.

    Definition Classes
    Offer
  29. def syncWait(): T

    Synchronize this offer, blocking for the result.

    Synchronize this offer, blocking for the result. See {{sync()}} and {{com.twitter.util.Future.apply()}}

    Definition Classes
    Offer
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(): Future[T]

    Synonym for sync()

    Synonym for sync()

    Definition Classes
    Offer
    Annotations
    @deprecated
    Deprecated

    (Since version 5.x) use sync() instead

Inherited from Offer[T]

Inherited from AnyRef

Inherited from Any

Ungrouped