Companion

object Companion

Functions

Link copied to clipboard
fun newInstance(origin: InvocationOrigin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null): InvocationContext

Creates an InvocationContext with a Trace that defaults to a java.util.UUID as value and java.time.Instant.now timestamp.

Link copied to clipboard
fun peer(party: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext
Link copied to clipboard
fun rpc(actor: Actor, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), serializedTelemetry: SerializedTelemetry? = null): InvocationContext

Creates an InvocationContext with InvocationOrigin.RPC origin.

Link copied to clipboard
fun scheduled(scheduledState: ScheduledStateRef, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
Link copied to clipboard
fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
Link copied to clipboard
fun shell(trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext