com.twitter.algebird.util

TunnelMonoid

class TunnelMonoid[V] extends Monoid[Tunnel[V]]

This Monoid allows code to depends on the results of asynchronous computation. It is relatively common to have code which takes a Monoid and elements, but applies the computation in an opaque way (a cache, for example). This allows the code handing over the elements (in this case, Tunnel objects) to depend on the result of the Monoid's computation. Note that this code does not depend on any particular Monoid -- that dependency is strictly when the Tunnel objects are created. This is the async analogue of Function1Monoid.

Linear Supertypes
Monoid[Tunnel[V]], Semigroup[Tunnel[V]], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TunnelMonoid
  2. Monoid
  3. Semigroup
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TunnelMonoid()

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def assertNotZero(v: Tunnel[V]): Unit

    Definition Classes
    Monoid
  8. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  15. def isNonZero(v: Tunnel[V]): Boolean

    Definition Classes
    TunnelMonoid → Monoid
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def nonZeroOption(v: Tunnel[V]): Option[Tunnel[V]]

    Definition Classes
    Monoid
  18. final def notify(): Unit

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

    Definition Classes
    AnyRef
  20. def plus(older: Tunnel[V], newer: Tunnel[V]): Tunnel[V]

    Definition Classes
    TunnelMonoid → Semigroup
  21. def sum(vs: TraversableOnce[Tunnel[V]]): Tunnel[V]

    Definition Classes
    Monoid
  22. def sumOption(iter: TraversableOnce[Tunnel[V]]): Option[Tunnel[V]]

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def zero: Tunnel[V]

    Definition Classes
    TunnelMonoid → Monoid

Inherited from Monoid[Tunnel[V]]

Inherited from Semigroup[Tunnel[V]]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped