public static class TwoPartyDealFlow.Acceptor
extends Secondary
One side of the flow for inserting a pre-agreed deal.
Secondary.Companion
Companion
Constructor and Description |
---|
Acceptor(Party otherParty,
ProgressTracker progressTracker)
One side of the flow for inserting a pre-agreed deal.
|
Modifier and Type | Method and Description |
---|---|
kotlin.Pair<net.corda.core.transactions.TransactionBuilder,java.util.List> |
assembleSharedTX(TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> handshake) |
Party |
getOtherParty() |
ProgressTracker |
getProgressTracker()
Override this to provide a
class ProgressTracker . If one is provided and stepped, the framework will do something
helpful with the progress reports. If this flow is invoked as a subflow of another, then the
tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track
progress. |
TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> |
validateHandshake(TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> handshake) |
assembleSharedTX, call, getOtherParty, getProgressTracker, validateHandshake
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track, waitForLedgerCommit
public Acceptor(Party otherParty, ProgressTracker progressTracker)
One side of the flow for inserting a pre-agreed deal.
progressTracker
- Override this to provide a class ProgressTracker
. If one is provided and stepped, the framework will do something
helpful with the progress reports. If this flow is invoked as a subflow of another, then the
tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track
progress.
Note that this has to return a tracker before the flow is invoked. You can't change your mind half way through.
public TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> validateHandshake(TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> handshake)
public kotlin.Pair<net.corda.core.transactions.TransactionBuilder,java.util.List> assembleSharedTX(TwoPartyDealFlow.Handshake<net.corda.flows.TwoPartyDealFlow.AutoOffer> handshake)
public Party getOtherParty()
public ProgressTracker getProgressTracker()
Override this to provide a class ProgressTracker
. If one is provided and stepped, the framework will do something
helpful with the progress reports. If this flow is invoked as a subflow of another, then the
tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track
progress.
Note that this has to return a tracker before the flow is invoked. You can't change your mind half way through.
class ProgressTracker