public void setExpectedTerm(final long expectedTerm) {
        this.expectedTerm = expectedTerm;
    }
Creates a task with data/done/expectedTerm.
jraft-core/src/main/java/com/alipay/sofa/jraft/entity/Task.java