Package net.corda.v5.application.flows
Interface ResponderFlow
-
- All Implemented Interfaces:
-
net.corda.v5.application.flows.Flow
public interface ResponderFlow implements Flow
ResponderFlow is a Flow that is started by receiving a message from a peer.
A ResponderFlow must be annotated with InitiatedBy to be invoked by a session message. If both these requirements are met, then the flow will be invoked via call which takes a FlowSession. This session is created by the platform and communicates with the party that initiated the session.
Flows implementing this interface must have a no-arg constructor. The flow invocation will fail if this constructor does not exist.
-
-
Method Summary
Modifier and Type Method Description abstract void
call(@NotNull() FlowSession session)
The business logic for the flow should be written here. -
-
Method Detail
-
call
@Suspendable() abstract void call(@NotNull() FlowSession session)
The business logic for the flow should be written here.
This is equivalent to the call method for a normal flow. This version is invoked when the flow is started via an incoming session init event, via a counterparty calling initiateFlow.
- Parameters:
session
- The session opened by the counterparty.
-
-
-
-