List of usage examples for org.eclipse.jgit.internal.ketch Proposal awaitStateChange
public boolean awaitStateChange(State notIn, long wait, TimeUnit unit) throws InterruptedException
From source file:org.uberfire.java.nio.fs.jgit.util.commands.RefTreeUpdateCommand.java
License:Apache License
private void waitForQueue(final Proposal proposal) throws InterruptedException { while (!proposal.awaitStateChange(QUEUED, 250, MILLISECONDS)) { System.out.println("waiting queue..."); }/* w ww .j a v a 2 s .co m*/ switch (proposal.getState()) { case RUNNING: default: break; case EXECUTED: break; case ABORTED: break; } }