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.Sync
java.lang.InterruptedException
public void release()
release
in interface EDU.oswego.cs.dl.util.concurrent.Sync
public boolean attempt(long msecs) throws java.lang.InterruptedException
attempt
in interface EDU.oswego.cs.dl.util.concurrent.Sync
java.lang.InterruptedException
public long getTokens()
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.