BoundedCounter

rdts.datatypes.experiments.BoundedCounter
See theBoundedCounter companion object
case class BoundedCounter(reservations: PosNegCounter, allocations: GrowOnlyCounter, participants: Set[Uid])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

Value members

Concrete methods

def addParticipants(part: Set[Uid]): Delta
def allocate(value: Int)(using LocalUid): Delta
def allocated(id: Uid): Int
def available(id: Uid): Int
def available(using LocalUid): Int
def invariantOk: Unit
def rebalance(using LocalUid): Delta
def reserved(using LocalUid): Int
def reserved(id: Uid): Int
def transfer(amount: Int, target: Uid)(using LocalUid): Delta

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product