public class ScheduledActivity implements Scheduled
This class represents the lifecycle activity that a contract state of type interface LinearState
would like to perform at a
given point in time. e.g. run a fixing flow.
Note the use of interface FlowLogicRef
to represent a safe way to transport a class FlowLogic
out of the
contract sandbox.
Currently we support only flow based activities as we expect there to be a transaction generated off the back of
the activity, otherwise we have to start tracking secondary state on the platform of which scheduled activities
for a particular interface ContractState
have been processed/fired etc. If the activity is not "on ledger" then the
scheduled activity shouldn't be either.
Constructor and Description |
---|
ScheduledActivity(FlowLogicRef logicRef,
java.time.Instant scheduledAt)
This class represents the lifecycle activity that a contract state of type
interface LinearState would like to perform at a
given point in time. e.g. run a fixing flow. |
Modifier and Type | Method and Description |
---|---|
FlowLogicRef |
component1() |
java.time.Instant |
component2() |
ScheduledActivity |
copy(FlowLogicRef logicRef,
java.time.Instant scheduledAt)
This class represents the lifecycle activity that a contract state of type
interface LinearState would like to perform at a
given point in time. e.g. run a fixing flow. |
boolean |
equals(java.lang.Object p) |
FlowLogicRef |
getLogicRef() |
java.time.Instant |
getScheduledAt() |
int |
hashCode() |
java.lang.String |
toString() |
getScheduledAt
public ScheduledActivity(FlowLogicRef logicRef, java.time.Instant scheduledAt)
This class represents the lifecycle activity that a contract state of type interface LinearState
would like to perform at a
given point in time. e.g. run a fixing flow.
Note the use of interface FlowLogicRef
to represent a safe way to transport a class FlowLogic
out of the
contract sandbox.
Currently we support only flow based activities as we expect there to be a transaction generated off the back of
the activity, otherwise we have to start tracking secondary state on the platform of which scheduled activities
for a particular interface ContractState
have been processed/fired etc. If the activity is not "on ledger" then the
scheduled activity shouldn't be either.
public FlowLogicRef getLogicRef()
public java.time.Instant getScheduledAt()
public FlowLogicRef component1()
public java.time.Instant component2()
public ScheduledActivity copy(FlowLogicRef logicRef, java.time.Instant scheduledAt)
This class represents the lifecycle activity that a contract state of type interface LinearState
would like to perform at a
given point in time. e.g. run a fixing flow.
Note the use of interface FlowLogicRef
to represent a safe way to transport a class FlowLogic
out of the
contract sandbox.
Currently we support only flow based activities as we expect there to be a transaction generated off the back of
the activity, otherwise we have to start tracking secondary state on the platform of which scheduled activities
for a particular interface ContractState
have been processed/fired etc. If the activity is not "on ledger" then the
scheduled activity shouldn't be either.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)