use of com.uber.cadence.CancelTimerDecisionAttributes in project cadence-client by uber-java.
the class TimerDecisionStateMachine method createCancelTimerDecision.
private Decision createCancelTimerDecision() {
CancelTimerDecisionAttributes tryCancel = new CancelTimerDecisionAttributes();
tryCancel.setTimerId(attributes.getTimerId());
Decision decision = new Decision();
decision.setCancelTimerDecisionAttributes(tryCancel);
decision.setDecisionType(DecisionType.CancelTimer);
return decision;
}
Aggregations