spring-framework / org.springframework.web.socket.sockjs.client / RestTemplateXhrTransport / setTaskExecutor

setTaskExecutor

open fun setTaskExecutor(taskExecutor: TaskExecutor): Unit

Configure the TaskExecutor to use to execute XHR receive requests.

By default org.springframework.core.task.SimpleAsyncTaskExecutor is configured which creates a new thread every time the transports connects.