Class DistributedController

java.lang.Object
cn.sliew.carp.example.redisson.controller.DistributedController

@RestController @RequestMapping("/api/carp/example/redisson/distributed") public class DistributedController extends Object
  • Constructor Details

    • DistributedController

      public DistributedController()
  • Method Details

    • submitCallable

      @PostMapping("/submitCallable") public String submitCallable(@RequestParam("input") String input) throws Exception
      Throws:
      Exception
    • scheduleRunnable

      @PostMapping("/scheduleRunnable") public void scheduleRunnable(@RequestParam("input") String input) throws Exception
      Throws:
      Exception
    • scheduleLambda

      @PostMapping("/scheduleLambda") public void scheduleLambda(@RequestParam("input") String input) throws Exception
      Throws:
      Exception
    • scheduleRunnableWithCron

      @PostMapping("/scheduleRunnableWithCron") public void scheduleRunnableWithCron(@RequestParam("input") String input) throws Exception
      Throws:
      Exception
    • cancel

      @DeleteMapping("/cancel") public Boolean cancel(@RequestParam("taskId") String taskId) throws Exception
      Throws:
      Exception