sendAllMap

@Suspendable
abstract fun sendAllMap(@NotNull payloadsPerSession: Map<FlowSession, Any>)

Queues the given payloads for sending to the provided sessions and continues without waiting for a response.

Note that the other parties may receive the message at some arbitrary later point or not at all: if one of the provided [sessions] is offline then message delivery will be retried until the session expires. Sessions are deemed to be expired when this session stops receiving heartbeat messages from the counterparty within the configurable timeout.

The objects in payloadsPerSession should be of types that are annotated with @CordaSerializable or be primitive types. This function cannot handle types that do not meet these criteria.

Parameters

payloadsPerSession

a mapping that contains the payload to be sent to each session. The payloads should be either of primitive types or types annotated with @CordaSerializable.

Throws

CordaRuntimeException

if any session is closed or in a failed state.