branch iconmaster

arrow to build time
clock icon2 hrs, 7 mins, 15 secs

Zhijiang avatarZhijiang

[FLINK-16712][task] Refactor StreamTask to construct final fields

At the moment there are four fields initialized in the method of StreamTask#beforeInvoke, such as `stateBackend`, `checkpointStorage`, `timerService`, `asyncOperationsThreadPool`.

In general it is suggested to use final fields to get known benefits. So we can refactor the StreamTask to initialize these fields in the constructor instead.

This closes #11486

Reply via email to