org.apache.felix.eventadmin.impl.tasks
Class Rendezvous

java.lang.Object
  extended by EDU.oswego.cs.dl.util.concurrent.CyclicBarrier
      extended by org.apache.felix.eventadmin.impl.tasks.Rendezvous
All Implemented Interfaces:
EDU.oswego.cs.dl.util.concurrent.Barrier

public class Rendezvous
extends EDU.oswego.cs.dl.util.concurrent.CyclicBarrier

This is a simplified version of the CyclicBarrier implementation. It provides the same methods but internally ignores the exceptions.

Author:
Felix Project Team

Field Summary
 
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.CyclicBarrier
barrierCommand_, broken_, count_, parties_, resets_
 
Constructor Summary
Rendezvous()
          Create a Barrier for the indicated number of parties, and the default Rotator function to run at each barrier point.
 
Method Summary
 boolean isTimedOut()
           
 void waitAttemptForRendezvous(long timeout)
          see CyclicBarrier.attemptBarrier(long)
 void waitForRendezvous()
          see CyclicBarrier.barrier()
 
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.CyclicBarrier
attemptBarrier, barrier, broken, doBarrier, parties, restart, setBarrierCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rendezvous

public Rendezvous()
Create a Barrier for the indicated number of parties, and the default Rotator function to run at each barrier point.

Method Detail

waitForRendezvous

public void waitForRendezvous()
see CyclicBarrier.barrier()


waitAttemptForRendezvous

public void waitAttemptForRendezvous(long timeout)
                              throws EDU.oswego.cs.dl.util.concurrent.TimeoutException
see CyclicBarrier.attemptBarrier(long)

Throws:
EDU.oswego.cs.dl.util.concurrent.TimeoutException

isTimedOut

public boolean isTimedOut()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.