final case class EndpointSubset(addresses: Option[Seq[EndpointAddress]] = None, notReadyAddresses: Option[Seq[EndpointAddress]] = None, ports: Option[Seq[EndpointPort]] = None) extends Product with Serializable
EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:
{ Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }
The resulting set of endpoints can be viewed as:
a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]
- Source
- EndpointSubset.scala
- Alphabetic
- By Inheritance
- EndpointSubset
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new EndpointSubset(addresses: Option[Seq[EndpointAddress]] = None, notReadyAddresses: Option[Seq[EndpointAddress]] = None, ports: Option[Seq[EndpointPort]] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAddresses(newValues: EndpointAddress*): EndpointSubset
Appends new values to addresses
- def addNotReadyAddresses(newValues: EndpointAddress*): EndpointSubset
Appends new values to notReadyAddresses
- def addPorts(newValues: EndpointPort*): EndpointSubset
Appends new values to ports
- val addresses: Option[Seq[EndpointAddress]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapAddresses(f: (Seq[EndpointAddress]) => Seq[EndpointAddress]): EndpointSubset
if addresses has a value, transforms to the result of function
- def mapNotReadyAddresses(f: (Seq[EndpointAddress]) => Seq[EndpointAddress]): EndpointSubset
if notReadyAddresses has a value, transforms to the result of function
- def mapPorts(f: (Seq[EndpointPort]) => Seq[EndpointPort]): EndpointSubset
if ports has a value, transforms to the result of function
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val notReadyAddresses: Option[Seq[EndpointAddress]]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val ports: Option[Seq[EndpointPort]]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAddresses(value: Seq[EndpointAddress]): EndpointSubset
Returns a new data with addresses set to new value
- def withNotReadyAddresses(value: Seq[EndpointAddress]): EndpointSubset
Returns a new data with notReadyAddresses set to new value
- def withPorts(value: Seq[EndpointPort]): EndpointSubset
Returns a new data with ports set to new value