Added getter methods to ThreadPoolTaskExecutor for informational purposes.
Added getter methods to SingleThreadedExecutor for informational purposes.