Class FlowSessionConfiguration.Builder
-
- All Implemented Interfaces:
public final class FlowSessionConfiguration.Builder
-
-
Constructor Summary
Constructors Constructor Description FlowSessionConfiguration.Builder()
-
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. -
-
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:
-
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:
-
build
FlowSessionConfiguration build()
Builds a new instance of FlowSessionConfiguration.
- Returns:
a new instance of FlowSessionConfiguration.
-
-
-
-