站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

Sync (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


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: 1.1 $
Author:
Simone Bordet
See Also:
Semaphore

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

Method Detail

acquire

public void acquire()
             throws InterruptedException
Acquires this sync

Throws:
InterruptedException
See Also:
release()

release

public void release()
Releases this sync

See Also:
acquire()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.