public class FlowStateMachineImpl<R> implements FlowStateMachine<R>
Modifier and Type | Class and Description |
---|---|
static class |
FlowStateMachineImpl.Companion |
Modifier and Type | Field and Description |
---|---|
static FlowStateMachineImpl.Companion |
Companion |
ServiceHubInternal |
serviceHub |
Constructor and Description |
---|
FlowStateMachineImpl(StateMachineRunId id,
FlowLogic<? extends R> logic,
co.paralleluniverse.fibers.FiberScheduler scheduler,
FlowInitiator flowInitiator) |
Modifier and Type | Method and Description |
---|---|
void |
checkFlowPermission(java.lang.String permissionName,
java.util.Map<java.lang.String,java.lang.String> extraAuditData) |
FlowInitiator |
getFlowInitiator() |
StateMachineRunId |
getId() |
org.slf4j.Logger |
getLogger()
Return the logger for this state machine. The logger name incorporates id and so including it in the log message
is not necessary.
|
FlowLogic<R> |
getLogic() |
com.google.common.util.concurrent.ListenableFuture<R> |
getResultFuture()
This future will complete when the call method returns.
|
ServiceHubInternal |
getServiceHub() |
<T> UntrustworthyData<T> |
receive(java.lang.Class<T> receiveType,
Party otherParty,
FlowLogic<?> sessionFlow) |
void |
recordAuditEvent(java.lang.String eventType,
java.lang.String comment,
java.util.Map<java.lang.String,java.lang.String> extraAuditData) |
void |
run() |
void |
send(Party otherParty,
java.lang.Object payload,
FlowLogic<?> sessionFlow) |
<T> UntrustworthyData<T> |
sendAndReceive(java.lang.Class<T> receiveType,
Party otherParty,
java.lang.Object payload,
FlowLogic<?> sessionFlow,
boolean retrySend) |
void |
setServiceHub(ServiceHubInternal p) |
SignedTransaction |
waitForLedgerCommit(SecureHash hash,
FlowLogic<?> sessionFlow) |
checkFlowPermission, getFlowInitiator, getId, getLogger, getResultFuture, getServiceHub, receive, recordAuditEvent, send, sendAndReceive, waitForLedgerCommit
public ServiceHubInternal serviceHub
public static FlowStateMachineImpl.Companion Companion
public FlowStateMachineImpl(StateMachineRunId id, FlowLogic<? extends R> logic, co.paralleluniverse.fibers.FiberScheduler scheduler, FlowInitiator flowInitiator)
public ServiceHubInternal getServiceHub()
public void setServiceHub(ServiceHubInternal p)
public org.slf4j.Logger getLogger()
Return the logger for this state machine. The logger name incorporates id and so including it in the log message is not necessary.
public com.google.common.util.concurrent.ListenableFuture<R> getResultFuture()
This future will complete when the call method returns.
public void run()
public <T> UntrustworthyData<T> sendAndReceive(java.lang.Class<T> receiveType, Party otherParty, java.lang.Object payload, FlowLogic<?> sessionFlow, boolean retrySend)
public <T> UntrustworthyData<T> receive(java.lang.Class<T> receiveType, Party otherParty, FlowLogic<?> sessionFlow)
public SignedTransaction waitForLedgerCommit(SecureHash hash, FlowLogic<?> sessionFlow)
public void checkFlowPermission(java.lang.String permissionName, java.util.Map<java.lang.String,java.lang.String> extraAuditData)
public void recordAuditEvent(java.lang.String eventType, java.lang.String comment, java.util.Map<java.lang.String,java.lang.String> extraAuditData)
public StateMachineRunId getId()
public FlowLogic<R> getLogic()
public FlowInitiator getFlowInitiator()