com.teststeps.thekla4j.websocket.stomp.spring.functions.ClientConfiguration Maven / Gradle / Ivy
package com.teststeps.thekla4j.websocket.stomp.spring.functions;
import io.vavr.Function1;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.web.socket.messaging.WebSocketStompClient;
public class ClientConfiguration {
public static Function1 setTaskScheduler =
client -> {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.initialize();
client.setTaskScheduler(scheduler);
return null;
};
}