|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.avalon.excalibur.concurrent.Semaphore
コンストラクタの概要 | |
Semaphore(long tokens)
|
メソッドの概要 | |
void |
acquire()
Aquire access to resource. |
boolean |
attempt(long msecs)
Aquire access to resource. |
void |
release()
Release lock. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public Semaphore(long tokens)
メソッドの詳細 |
public void acquire() throws java.lang.InterruptedException
Sync
の記述: Sync
内の acquire
org.apache.avalon.excalibur.concurrent.Sync
からコピーされたタグ:java.lang.InterruptedException
- if an error occurspublic void release()
Sync
の記述: Sync
内の release
public boolean attempt(long msecs) throws java.lang.InterruptedException
Sync
の記述: Sync
内の attempt
org.apache.avalon.excalibur.concurrent.Sync
からコピーされたタグ:msec
- the duration to wait for lock to be releasedjava.lang.InterruptedException
- if an error occurs
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |