public static class InvocationContext.Companion
Modifier and Type | Method and Description |
---|---|
InvocationContext |
newInstance(InvocationOrigin origin,
Trace trace,
Actor actor,
Trace externalTrace,
Actor impersonatedActor,
java.util.List<? extends java.lang.Object> arguments,
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. |
InvocationContext |
peer(CordaX500Name party,
Trace trace,
Trace externalTrace,
Actor impersonatedActor)
Creates an
class InvocationContext with class InvocationOrigin.Peer origin. |
InvocationContext |
rpc(Actor actor,
Trace trace,
Trace externalTrace,
Actor impersonatedActor,
java.util.List<? extends java.lang.Object> arguments)
Creates an
class InvocationContext with class InvocationOrigin.RPC origin. |
InvocationContext |
scheduled(ScheduledStateRef scheduledState,
Trace trace,
Trace externalTrace)
Creates an
class InvocationContext with class InvocationOrigin.Scheduled origin. |
InvocationContext |
service(java.lang.String serviceClassName,
CordaX500Name owningLegalIdentity,
Trace trace,
Trace externalTrace)
Creates an
class InvocationContext with class InvocationOrigin.Service origin. |
InvocationContext |
shell(Trace trace,
Trace externalTrace)
Creates an
class InvocationContext with class InvocationOrigin.Shell origin. |
public InvocationContext newInstance(InvocationOrigin origin, Trace trace, Actor actor, Trace externalTrace, Actor impersonatedActor, java.util.List<? extends java.lang.Object> arguments, 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.
public InvocationContext rpc(Actor actor, Trace trace, Trace externalTrace, Actor impersonatedActor, java.util.List<? extends java.lang.Object> arguments)
Creates an class InvocationContext
with class InvocationOrigin.RPC
origin.
public InvocationContext peer(CordaX500Name party, Trace trace, Trace externalTrace, Actor impersonatedActor)
Creates an class InvocationContext
with class InvocationOrigin.Peer
origin.
public InvocationContext service(java.lang.String serviceClassName, CordaX500Name owningLegalIdentity, Trace trace, Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Service
origin.
public InvocationContext scheduled(ScheduledStateRef scheduledState, Trace trace, Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Scheduled
origin.
public InvocationContext shell(Trace trace, Trace externalTrace)
Creates an class InvocationContext
with class InvocationOrigin.Shell
origin.