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 Details

    • ComputingController

      public ComputingController()
  • Method Details

    • submitCallable

      @PostMapping("/callable") public Integer submitCallable() throws Exception
      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