Class RingbufferController

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

@RestController @Conditional(LoomServerEnabledCondition.class) @RequestMapping("/api/ringbuffer") public class RingbufferController extends Object
REST controller for the default DistributedRingbuffer.
  • Constructor Details

  • Method Details

    • add

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

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/{sequence}") public org.springframework.http.ResponseEntity<Map<String,Object>> readOne(@PathVariable long sequence)
    • readMany

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

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

      @RolesAllowed("ADMIN") @DeleteMapping public org.springframework.http.ResponseEntity<Void> clear()