StateKey

class StateKey(val tenantId: String, val id: String)

The key of one aggregate's state in a StateViewCache: the aggregate's tenantId and id, its identity within its type. The type is the cache's: one cache per aggregate type.

Constructors

Link copied to clipboard
constructor(tenantId: String, id: String)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard

Functions

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

<tenantId>/<id> as they are, to read in a message. The cache stores the state under another text, the tenant and the id each escaped as an aggregate ref escapes them, so two keys never share one entry.