commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject [lang] Concurrency Classes...
Date Thu, 17 Nov 2005 16:16:30 GMT

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

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

public class TimeoutException extends Exception {


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message