SubscriptionId

class SubscriptionId @InternalWowApi constructor(val context: String, val name: String) : Comparable<SubscriptionId>

A subscription by the bounded context it belongs to and its name (processor.function, or a built-in's wow.…): names are unique within a context only, so two contexts of one service may each have a subscription of one name, such as their wow.snapshot. It keys the failure ledger's entries (me.ahoo.wow.spi.ledger.FailureLedger), so the contexts of a service that share a store keep their entries apart; and it identifies a subscription to the operator (the parked entries' routes) and in the host's configuration, as its key <context>.<name> (wow.subscriptions.[shop.CartSaga.onOrderCreated]): a context's name has no dot, so the key splits at its first.

Construct one with of; the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(context: String, name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val key: String

<context>.<name>, as the host's configuration keys it.

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: SubscriptionId): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String