All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
  };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy