Hub

zio.Hub$
See theHub companion class
object Hub

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Hub.type

Members list

Concise view

Value members

Concrete methods

def bounded[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the back pressure strategy. The hub will retain messages until they have been taken by all subscribers, applying back pressure to publishers if the hub is at capacity.

Creates a bounded hub with the back pressure strategy. The hub will retain messages until they have been taken by all subscribers, applying back pressure to publishers if the hub is at capacity.

For best performance use capacities that are powers of two.

Attributes

def dropping[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the dropping strategy. The hub will drop new messages if the hub is at capacity.

Creates a bounded hub with the dropping strategy. The hub will drop new messages if the hub is at capacity.

For best performance use capacities that are powers of two.

Attributes

def sliding[A](requestedCapacity: => Int)(implicit trace: Trace): UIO[Hub[A]]

Creates a bounded hub with the sliding strategy. The hub will add new messages and drop old messages if the hub is at capacity.

Creates a bounded hub with the sliding strategy. The hub will add new messages and drop old messages if the hub is at capacity.

For best performance use capacities that are powers of two.

Attributes

def unbounded[A](implicit trace: Trace): UIO[Hub[A]]

Creates an unbounded hub.

Creates an unbounded hub.

Attributes