public class Semaphore
extends java.lang.Object
implements EDU.oswego.cs.dl.util.concurrent.Sync
| Constructor and Description |
|---|
Semaphore(long tokens) |
public void acquire()
throws java.lang.InterruptedException
acquire in interface EDU.oswego.cs.dl.util.concurrent.Syncjava.lang.InterruptedExceptionpublic void release()
release in interface EDU.oswego.cs.dl.util.concurrent.Syncpublic boolean attempt(long msecs)
throws java.lang.InterruptedException
attempt in interface EDU.oswego.cs.dl.util.concurrent.Syncjava.lang.InterruptedExceptionpublic long getTokens()
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.