org.jboss.cache.util
Class ThreadGate

java.lang.Object
  extended by org.jboss.cache.util.ThreadGate

public class ThreadGate
extends java.lang.Object

Copyright (c) 2005 Brian Goetz and Tim Peierls Released under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.5) Official home: http://www.jcip.net ThreadGate

Recloseable gate using wait and notifyAll

Author:
Brian Goetz and Tim Peierls

Constructor Summary
ThreadGate()
           
 
Method Summary
 void await()
           
 void await(long timeout)
           
 void close()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadGate

public ThreadGate()
Method Detail

close

public void close()

open

public void open()

await

public void await()
           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

await

public void await(long timeout)
           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException