Trace.SessionId
Keywords: net.corda.core.context.Trace.SessionId class
Date: 2023-09-18

net.corda.core.context

## Class Trace.SessionId

- Id
- - net.corda.core.context.Trace.SessionId

- Enclosing class:
    Trace

      public static class Trace.SessionId
      extends Id

  Represents id and timestamp of a session.

- - ### Field Detail

    - #### Companion

          public static net.corda.core.context.Trace.SessionId.Companion Companion

  - ### Constructor Detail

    - #### SessionId

          public SessionId(@NotNull
                           java.lang.String value,
                           @NotNull
                           java.time.Instant timestamp)

      Represents id and timestamp of a session.

  - ### Method Detail

    - #### newInstance

          @JvmStatic
           @NotNull
          public static net.corda.core.context.Trace.SessionId newInstance(@NotNull
                                                                                                java.lang.String value,
                                                                                                @NotNull
                                                                                                java.time.Instant timestamp)

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

      See Also:
        java.util.UUID, Instant.now