Class AtomicController

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

@RestController @Conditional(LoomServerEnabledCondition.class) @RequestMapping("/api/atomic") public class AtomicController extends Object
REST controller for the default CP atomic values.
  • Constructor Details

  • Method Details

    • getLong

      @RolesAllowed({"ADMIN","USER","READONLY"}) @GetMapping("/long") public org.springframework.http.ResponseEntity<Map<String,Long>> getLong()
    • setLong

      @RolesAllowed({"ADMIN","USER"}) @PutMapping("/long") public org.springframework.http.ResponseEntity<Map<String,Long>> setLong(@RequestBody @Nullable AtomicController.AtomicLongValue request)
    • addLong

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/long/add") public org.springframework.http.ResponseEntity<Map<String,Long>> addLong(@RequestBody @Nullable AtomicController.DeltaRequest request)
    • incrementLong

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/long/increment") public org.springframework.http.ResponseEntity<Map<String,Long>> incrementLong()
    • decrementLong

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/long/decrement") public org.springframework.http.ResponseEntity<Map<String,Long>> decrementLong()
    • compareAndSetLong

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/long/cas") public org.springframework.http.ResponseEntity<Map<String,Object>> compareAndSetLong(@RequestBody @Nullable AtomicController.AtomicLongCasRequest request)
    • getReference

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

      @RolesAllowed({"ADMIN","USER"}) @PutMapping("/reference") public org.springframework.http.ResponseEntity<Map<String, @Nullable Object>> setReference(@RequestBody AtomicController.ReferenceValue request)
    • clearReference

      @RolesAllowed({"ADMIN","USER"}) @DeleteMapping("/reference") public org.springframework.http.ResponseEntity<Map<String, @Nullable Object>> clearReference()
    • compareAndSetReference

      @RolesAllowed({"ADMIN","USER"}) @PostMapping("/reference/cas") public org.springframework.http.ResponseEntity<Map<String, @Nullable Object>> compareAndSetReference(@RequestBody @Nullable AtomicController.ReferenceCasRequest request)