Identity

public final class Identity

Utilities for exposing identity of a server-side object as io.spine.core.MessageIds.

Functions

Link copied to clipboard
public static MessageId byString(String value)
Creates the ID which has only the passed value.
Link copied to clipboard
public static MessageId ofEntity(Object entityId, TypeUrl entityType)
Creates the identity of the entity state by its ID and type URL.
Link copied to clipboard
public static MessageId ofProducer(Any producerId)
Creates the identity by the passed producer ID.
Link copied to clipboard
public static MessageId ofSingleton(Class<? extends Object> singletonClass)
Creates the ID which has only fully qualified name of the passed class.