open class Id<out VALUE : Any>
Represents a unique, timestamped id.
value
- unique value of the id.
entityType
- optional id entity type.
timestamp
- timestamp for the id.
Id(value: VALUE, entityType: String?, timestamp: Instant)
Represents a unique, timestamped id. |
val entityType: String?
optional id entity type. |
|
val timestamp: Instant
timestamp for the id. |
|
val value: VALUE
unique value of the id. |
fun equals(other: Any?): Boolean |
|
fun hashCode(): Int |
|
fun toString(): String |
fun <V : Any> newInstance(value: V, entityType: String? = null, timestamp: Instant = now()): Id<V>
Creates an id using Instant.now as timestamp. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |
class InvocationId : Id<String>
Represents id and timestamp of an invocation. |
|
class SessionId : Id<String>
Represents id and timestamp of a session. |