Class WorkerApp
java.lang.Object
com.gsitm.ustra.java.batch.worker.WorkerApp
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
public class WorkerApp
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
워커 앱
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerApp(WorkerCommandService workerCommandService, BatchService batchService, WorkerMaintainService workerMaintainService) -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
WorkerApp
public WorkerApp(WorkerCommandService workerCommandService, BatchService batchService, WorkerMaintainService workerMaintainService)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
pollCommand
@Scheduled(fixedDelay=1000L) public void pollCommand()
-