CordaRPCOps.setFlowsDrainingModeEnabled - corda

corda / net.corda.core.messaging / CordaRPCOps / setFlowsDrainingModeEnabled

# setFlowsDrainingModeEnabled

`abstract fun setFlowsDrainingModeEnabled(enabled: Boolean): Unit`

Sets the value of the node's flows draining mode. If this mode is enabled, the node will reject new flows through RPC, ignore scheduled flows, and do not process initial session messages, meaning that P2P counterparties will not be able to initiate new flows involving the node.

### Parameters

`enabled` - whether the flows draining mode will be enabled.