ThreadFactory factory = new ThreadFactory() {
public Thread newThread(final Runnable command) {
return getThreadFactory().newThread(command, "STREAMING_STATE_TRANSFER sender");
}
};
threadPool.setRejectedExecutionHandler(new ShutdownRejectedExecutionHandler(threadPool
.getRejectedExecutionHandler()));
threadPool.setThreadFactory(factory);
return threadPool;
}