Packages

trait Group[T] extends AnyRef

A group is a dynamic set of T-typed values. It is used to represent dynamic hosts and operations over such lists. Its flexibility is derived from the ability to map, creating derived groups. The map operation ensures that each element is mapped over exactly once, allowing side-effecting operations to rely on this to implement safe semantics.

Note: querying groups is nonblocking, which means that derived groups are effectively eventually consistent.

Note: Ts must be hashable, defining hashCode and equals to ensure that maps have exactly-once semantics.

Note: Groups are invariant because Scala's Sets are. In the case of sets, this is an implementation artifact, and is unfortunate, but it's better to keep things simpler and consistent.

Self Type
Group[T]
Annotations
@deprecated
Deprecated

(Since version 6.7.x) Use com.twitter.finagle.Name to represent clusters instead

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Group
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val set: Var[Set[T]]
    Attributes
    protected[com.twitter.finagle]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: Group[T]): Group[T]
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def apply(): Set[T]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[U](f: PartialFunction[T, U]): Group[U]

    Create a new group by collecting each element of this group with f.

    Create a new group by collecting each element of this group with f. f is guaranteed to be invoked exactly once for each element of the group, even for dynamic groups.

  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 map[U](f: (T) ⇒ U): Group[U]

    Create a new group by mapping each element of this group with f.

    Create a new group by mapping each element of this group with f. f is guaranteed to be invoked exactly once for each element of the groups, even for dynamic groups.

  16. final def members: Set[T]

    The current members of this group.

    The current members of this group. If the group has not changed, the same object is returned. This allows a simple object identity check to be performed to see if the Group has been updated.

  17. def named(n: String): Group[T]

    Name the group n.

    Name the group n.

    returns

    this mixed in with LabelledGroup, named n

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  21. final lazy val ref: AtomicReference[Set[T]]
    Attributes
    protected[com.twitter.finagle]
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Group → AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped