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

net.corda.core.context

## Class Trace.InvocationId

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

- Enclosing class:
    Trace

      public static class Trace.InvocationId
      extends Id

  Represents id and timestamp of an invocation.

- - ### Field Detail

    - #### Companion

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

  - ### Constructor Detail

    - #### InvocationId

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

      Represents id and timestamp of an invocation.

  - ### Method Detail

    - #### newInstance

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

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

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