You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Carman <ja...@carmanconsulting.com> on 2005/11/17 17:16:30 UTC

[lang] Concurrency Classes...

All,

What do you think about adding in some classes which can help deal with
doing blocking waits on lock objects?  Something like:

public class BlockingUtils {
  public void waitUntil( Object lock, long timeout, Condition condition )
throws InterruptedException, TimeoutException;

  public void waitUntil( Object lock, Condition condition ) throws
InterruptedException;
}

// We could use something from functor here, but to avoid the dependency...
public interface Condition {
  public boolean evaluate();
}

public class TimeoutException extends Exception {
}

James



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org