Class FlowSessionConfiguration.Builder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      FlowSessionConfiguration.Builder requireClose(boolean requireClose) When set to true, the initiated party will send a close message after calling FlowSession.close() and the initiating party will suspend and wait to receive the message when they call FlowSession.close().
      FlowSessionConfiguration.Builder timeout(Duration timeout) The duration that Corda waits when no message has been received from a counterparty before causing the session to error.
      FlowSessionConfiguration build() Builds a new instance of FlowSessionConfiguration.
      • Methods inherited from class java.lang.Object

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

      • FlowSessionConfiguration.Builder

        FlowSessionConfiguration.Builder()
    • Method Detail

      • requireClose

         FlowSessionConfiguration.Builder requireClose(boolean requireClose)

        When set to true, the initiated party will send a close message after calling FlowSession.close() and the initiating party will suspend and wait to receive the message when they call FlowSession.close(). When set to false the session is marked as terminated immediately when close() is called. Default value is true.

        Parameters:
        requireClose - Flag that indicates whether close message is required.
        Returns:

        Builder.

      • timeout

         FlowSessionConfiguration.Builder timeout(Duration timeout)

        The duration that Corda waits when no message has been received from a counterparty before causing the session to error. If set to null, value set in Corda Configuration will be used. Default value is null.

        Parameters:
        timeout - Session timeout.
        Returns:

        Builder.