Slide 24
Slide 24 text
polling
の設定と開始
main
メソッドなどに記述する
TaskClient taskClient = new TaskClient();
taskClient.setRootURI("http://localhost:8080/api/");
Worker worker1 = new SampleJavaWorker("task_1");
Worker worker2 = new SampleJavaWorker("task_2");
Worker worker3 = new SampleJavaWorker("sample.task1");
// Create TaskRunnerConfigurer
TaskRunnerConfigurer configurer = new TaskRunnerConfigurer.Builder (taskClient,
List.of(worker1, worker2,worker3))
.withThreadCount(3)
.build();
configurer.init();
24