mirror of
https://github.com/corda/corda.git
synced 2024-12-30 01:39:04 +00:00
Add a toString to FlowSessionImpl
This commit is contained in:
parent
f2dfeb2d9f
commit
d5088c600b
@ -8,10 +8,7 @@ import net.corda.core.identity.Party
|
|||||||
import net.corda.core.internal.FlowStateMachine
|
import net.corda.core.internal.FlowStateMachine
|
||||||
import net.corda.core.utilities.UntrustworthyData
|
import net.corda.core.utilities.UntrustworthyData
|
||||||
|
|
||||||
class FlowSessionImpl(
|
class FlowSessionImpl(override val counterparty: Party) : FlowSession() {
|
||||||
override val counterparty: Party
|
|
||||||
) : FlowSession() {
|
|
||||||
|
|
||||||
internal lateinit var stateMachine: FlowStateMachine<*>
|
internal lateinit var stateMachine: FlowStateMachine<*>
|
||||||
internal lateinit var sessionFlow: FlowLogic<*>
|
internal lateinit var sessionFlow: FlowLogic<*>
|
||||||
|
|
||||||
@ -39,5 +36,7 @@ class FlowSessionImpl(
|
|||||||
override fun send(payload: Any) {
|
override fun send(payload: Any) {
|
||||||
return stateMachine.send(counterparty, payload, sessionFlow)
|
return stateMachine.send(counterparty, payload, sessionFlow)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toString() = "Flow session with $counterparty"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user