corda / net.corda.core.context / Trace / SessionId

SessionId

class SessionId : Id<String>

Represents id and timestamp of a session.

Constructors

<init>

Represents id and timestamp of a session.

SessionId(value: String, timestamp: Instant)

Companion Object Functions

newInstance

Creates a session id using a java.util.UUID as value and Instant.now as timestamp.

fun newInstance(value: String = UuidGenerator.next().toString(), timestamp: Instant = Instant.now()): SessionId