/** * Attempts to acquire the requested set of locks. The locks are * acquired reentrantly as long as the lock client is not * {@link LockClient#ANONYMOUS}. * * @return a token for the set of locks that were acquired, or <code>null</code> * if no locks were acquired */ @POST @Path("lock-with-full-response/{client: .*}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @CancelableServerCall @NonIdempotent LockResponse lockWithFullLockResponse(@Safe @PathParam("client") LockClient client, LockRequest request) throws InterruptedException;
/** * Attempts to acquire the requested set of locks. The locks are * acquired reentrantly as long as the lock client is not * {@link LockClient#ANONYMOUS}. * * @return a token for the set of locks that were acquired, or <code>null</code> * if no locks were acquired */ @POST @Path("lock-with-full-response/{client: .*}") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @CancelableServerCall @NonIdempotent LockResponse lockWithFullLockResponse(@Safe @PathParam("client") LockClient client, LockRequest request) throws InterruptedException;