Class ReliableTopicController

java.lang.Object
com.loomcache.springboot.controller.ReliableTopicController

@RestController @Conditional(LoomServerEnabledCondition.class) @RequestMapping("/api/topic-reliable") public class ReliableTopicController extends Object
REST controller for the default ReliableTopic.
  • Constructor Details

    • ReliableTopicController

      public ReliableTopicController(ReliableTopic<String> defaultReliableTopic)
  • Method Details

    • publish

      @RolesAllowed({"ADMIN","USER"}) @PostMapping public org.springframework.http.ResponseEntity<Map<String,Object>> publish(@RequestBody @Nullable String message)
    • read

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping public org.springframework.http.ResponseEntity<Map<String,Object>> read(@RequestParam(defaultValue="0") long fromSequence, @RequestParam(defaultValue="100") int limit)
    • stats

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/stats") public org.springframework.http.ResponseEntity<Map<String,Object>> stats()