public boolean getTransactionalStateRestoreEnabled() {
    JobConfig jobConfig = new JobConfig(this);

    boolean standByEnabled = jobConfig.getStandbyTasksEnabled();
    boolean asyncCommitEnabled = getAsyncCommit();

    // TODO remove check of standby enabled when SAMZA-2353 is completed
    // TODO remove check of async commit when SAMZA-2505 is completed
    // transactional state restore must remain disabled until it is supported in the above use cases
    return !standByEnabled && !asyncCommitEnabled && getBoolean(TRANSACTIONAL_STATE_RESTORE_ENABLED, DEFAULT_TRANSACTIONAL_STATE_RESTORE_ENABLED);
  }
Returns a value indicating how long to wait for the tasks to shutdown
If the value is not defined in the config or if does not parse correctly, we return the default value -
{@value #DEFAULT_TASK_SHUTDOWN_MS}

@return Long value indicating how long to wait for all the tasks to shutdown
samza-core/src/main/java/org/apache/samza/config/TaskConfig.java