FlowMessaging

@DoNotImplement
interface FlowMessaging

Functions

Link copied to clipboard
@Suspendable
abstract fun initiateFlow(x500Name: MemberX500Name): FlowSession

Creates a communication session with a counterparty's ResponderFlow. Subsequently, you may send/receive using this session object. Note that this function does not communicate in itself. The counter-flow will be kicked off by the first send/receive.

@Suspendable
abstract fun initiateFlow(x500Name: MemberX500Name, flowContextPropertiesBuilder: FlowContextPropertiesBuilder): FlowSession

Creates a communication session with another member. Subsequently you may send/receive using this session object. Note that this function does not communicate in itself. The counter-flow will be kicked off by the first send/receive.

Link copied to clipboard
@Suspendable
abstract fun <R : Any> receiveAll(receiveType: Class<out R>, sessions: Set<FlowSession>): List<R>

Suspends until a message has been received for each session in the specified sessions.

Link copied to clipboard
@Suspendable
abstract fun receiveAllMap(sessions: Map<FlowSession, Class<out Any>>): Map<FlowSession, Any>

Suspends until a message has been received for each session in the specified sessions.

Link copied to clipboard
@Suspendable
abstract fun sendAll(payload: Any, sessions: Set<FlowSession>)

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

Link copied to clipboard
@Suspendable
abstract fun sendAllMap(payloadsPerSession: Map<FlowSession, Any>)

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