Class MultiMapController

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

@RestController @Conditional(LoomServerEnabledCondition.class) @RequestMapping("/api/multimap") public class MultiMapController extends Object
REST controller for the default DistributedMultiMap.
  • Constructor Details

  • Method Details

    • put

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/{key}") public org.springframework.http.ResponseEntity<Map<String,Object>> put(@PathVariable String key, @RequestBody @Nullable String value)
    • get

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

      @RolesAllowed({"ADMIN","USER"}) @DeleteMapping("/{key}/values") public org.springframework.http.ResponseEntity<Map<String,Object>> removeValue(@PathVariable String key, @RequestParam String value)
    • removeAll

      @RolesAllowed({"ADMIN","USER"}) @DeleteMapping("/{key}") public org.springframework.http.ResponseEntity<Map<String,Object>> removeAll(@PathVariable String key)
    • entries

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

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/keys") public org.springframework.http.ResponseEntity<Map<String,Object>> keys(@RequestParam(defaultValue="0") int offset, @RequestParam(defaultValue="100") int limit)
    • size

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