Package-level declarations

Types

Link copied to clipboard

Builder of context properties. If required, instances of this interface can be passed to FlowMessaging when sessions are initiated to modify context properties which are sent to the initiated flow.

Link copied to clipboard
@DoNotImplement
interface FlowMessaging
Link copied to clipboard
@DoNotImplement
interface FlowSession

A FlowSession is a handle on a communication sequence between two paired flows, possibly running on separate nodes.

Functions

Link copied to clipboard
@Suspendable
inline fun <R : Any> FlowSession.receive(): R

Suspends until a message of type R is received from the counterparty.

Link copied to clipboard
@Suspendable
inline fun <R : Any> FlowSession.sendAndReceive(payload: Any): R

Serializes and queues the given payload object for sending to the counterparty. Suspends until a response is received, which must be of the given R type.