Since this class is only intended for use through TaskExecutor, it could be made package-protected to reduce the possibility of inappropriate use.