Is there a way to stop and start a thread when there are messages waiting to be processed? Let say if a Thread has been idle for “x” period of time or there are “x” number of messages pending, some automated process could run to stop and start that thread.