Example usage for org.eclipse.jgit.internal.ketch Proposal awaitStateChange

List of usage examples for org.eclipse.jgit.internal.ketch Proposal awaitStateChange

Introduction

In this page you can find the example usage for org.eclipse.jgit.internal.ketch Proposal awaitStateChange.

Prototype

public boolean awaitStateChange(State notIn, long wait, TimeUnit unit) throws InterruptedException 

Source Link

Document

Wait for the proposal to exit a state.

Usage

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;
    }
}