org.jboss.util
Interface Sync

All Known Subinterfaces:
WaitSync (src)
All Known Implementing Classes:
Semaphore (src) , WaitSemaphore (src)

public interface Sync

Interface that gives synchronization semantic to implementors

See Also:
Semaphore (src)

Method Summary
 void acquire()
          Acquires this sync
 void release()
          Releases this sync
 

Method Detail

acquire

public void acquire()
             throws java.lang.InterruptedException
Acquires this sync

Throws:
java.lang.InterruptedException
See Also:
release()

release

public void release()
Releases this sync

See Also:
acquire()