Exemple #1
0
 @PUT
 @Path("{pId}/{tId}/commit-one-phase")
 public Response commmitOnePhase(
     @PathParam("pId") @DefaultValue("") String pId,
     @PathParam("tId") @DefaultValue("") String tId,
     String content) {
   Work work = faults.get(pId);
   if (work != null) work.commmitOnePhaseCnt += 1;
   return terminate(pId, tId, TxStatusMediaType.TX_COMMITTED_ONE_PHASE);
 }