Class BarrierBackdoor

java.lang.Object
com.atlassian.jira.dev.backdoor.BarrierBackdoor

@Consumes("application/json") @Produces("application/json") @Path("/barrier") public class BarrierBackdoor extends Object
Backdoor for manipulating barriers remotely.
Since:
v5.2
  • Constructor Details

    • BarrierBackdoor

      @Inject public BarrierBackdoor(BarrierFactory barrierFactory)
  • Method Details

    • raise

      @POST @Path("raise") public void raise(@QueryParam("barrierName") String name)
      Raises the barrier with the given name.
    • lower

      @POST @Path("lower") public void lower(@QueryParam("barrierName") String name)
      Lowers the barrier with the given name.
    • lowerThenRaise

      @POST @Path("lowerThenRaise") public void lowerThenRaise(@QueryParam("barrierName") String name)
      Lower the barrier with the given name to allow waiting threads through, then immediately raise it again. Waiting threads are only allowed through once. This is useful for stepping through loops that contain a barrier, one iteration at a time.