JBoss Common Classes 2.2.17.GA

org.jboss.util
Interface Sync

All Known Subinterfaces:
WaitSync
All Known Implementing Classes:
Semaphore, WaitSemaphore

public interface Sync

Interface that gives synchronization semantic to implementors

Version:
$Revision: 2787 $
Author:
Simone Bordet
See Also:
Semaphore

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

Method Detail

acquire

void acquire()
             throws InterruptedException
Acquires this sync

Throws:
InterruptedException
See Also:
release()

release

void release()
Releases this sync

See Also:
acquire()

JBoss Common Classes 2.2.17.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.