commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject [lang] Concurrency Classes...
Date Thu, 17 Nov 2005 16:16:30 GMT
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


Mime
View raw message