public static class InvocationContext.Companion
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace, @Nullable Actor actor, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor, @NotNull java.util.List<? extends java.lang.Object> arguments, @Nullable java.lang.String clientId)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace, @Nullable Actor actor, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor, @NotNull java.util.List<? extends java.lang.Object> arguments)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace, @Nullable Actor actor, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace, @Nullable Actor actor, @Nullable Trace externalTrace)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace, @Nullable Actor actor)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin, @NotNull Trace trace)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext newInstance(@NotNull InvocationOrigin origin)
Creates an class InvocationContext
with a class Trace
that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.
@JvmStatic @JvmOverloads @NotNull public InvocationContext rpc(@NotNull Actor actor, @NotNull Trace trace, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor, @NotNull java.util.List<? extends java.lang.Object> arguments)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
@JvmStatic @JvmOverloads @NotNull public InvocationContext rpc(@NotNull Actor actor, @NotNull Trace trace, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
@JvmStatic @JvmOverloads @NotNull public InvocationContext rpc(@NotNull Actor actor, @NotNull Trace trace, @Nullable Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
@JvmStatic @JvmOverloads @NotNull public InvocationContext rpc(@NotNull Actor actor, @NotNull Trace trace)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
@JvmStatic @JvmOverloads @NotNull public InvocationContext rpc(@NotNull Actor actor)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
@JvmStatic @NotNull public InvocationContext peer(@NotNull CordaX500Name party, @NotNull Trace trace, @Nullable Trace externalTrace, @Nullable Actor impersonatedActor)
Creates an class InvocationContext
with class InvocationOrigin.Peer
origin.
@JvmStatic @NotNull public InvocationContext service(@NotNull java.lang.String serviceClassName, @NotNull CordaX500Name owningLegalIdentity, @NotNull Trace trace, @Nullable Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Service
origin.
@JvmStatic @NotNull public InvocationContext scheduled(@NotNull ScheduledStateRef scheduledState, @NotNull Trace trace, @Nullable Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Scheduled
origin.
@JvmStatic @NotNull public InvocationContext shell(@NotNull Trace trace, @Nullable Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Shell
origin.