Implement interfaces to set and get names of threads.