Search in sources :

Example 1 with CancelTimerDecisionAttributes

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;
}
Also used : CancelTimerDecisionAttributes(com.uber.cadence.CancelTimerDecisionAttributes) Decision(com.uber.cadence.Decision)

Aggregations

CancelTimerDecisionAttributes (com.uber.cadence.CancelTimerDecisionAttributes)1 Decision (com.uber.cadence.Decision)1