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

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


org.jboss.util
Interface WaitSync

All Superinterfaces:
Sync
All Known Implementing Classes:
WaitSemaphore

public interface WaitSync
extends Sync

Interface that gives wait - notify primitives to implementors.

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

Method Summary
 void doNotify()
          Wakes up this sync that has been posed in wait status by a doWait() call.
 void doWait()
          Pone in wait status this sync, until doNotify() is called to wake it up.
 
Methods inherited from interface org.jboss.util.Sync
acquire, release
 

Method Detail

doWait

public void doWait()
            throws InterruptedException
Pone in wait status this sync, until doNotify() is called to wake it up.

Throws:
InterruptedException
See Also:
doNotify()

doNotify

public void doNotify()
              throws InterruptedException
Wakes up this sync that has been posed in wait status by a doWait() call. If this sync is not waiting, invoking this method should have no effect.

Throws:
InterruptedException
See Also:
doWait()


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