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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void call(@NotNull() FlowSession session) The business logic for the flow should be written here.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.