Class ComputingController
java.lang.Object
cn.sliew.carp.example.hazelcast.controller.ComputingController
@RestController
@RequestMapping("/api/carp/example/hazelcast/computing")
public class ComputingController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidscheduleRunnable(String input) voidsubmitDurationRunnable(String input) voidsubmitRunnable(String input)
-
Constructor Details
-
ComputingController
public ComputingController()
-
-
Method Details
-
submitCallable
- Throws:
Exception
-
submitRunnable
@PostMapping("/runnable") public void submitRunnable(@RequestParam("input") String input) throws Exception - Throws:
Exception
-
submitDurationRunnable
@PostMapping("/durable-runnable") public void submitDurationRunnable(@RequestParam("input") String input) throws Exception - Throws:
Exception
-
scheduleRunnable
@PostMapping("/scheduled-runnable") public String scheduleRunnable(@RequestParam("input") String input) throws Exception - Throws:
Exception
-
cancelScheduledRunnable
@DeleteMapping("/cancel-scheduled-runnable") public void cancelScheduledRunnable(@RequestParam("urn") String urn) throws Exception - Throws:
Exception
-