Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## fr.gouv.culture.util.apache.avalon.excalibur.concurrent
Class Semaphore

    java.lang.Object
      fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore

All Implemented Interfaces:
  org.apache.avalon.excalibur.concurrent.Sync

Direct Known Subclasses:
  Mutex

public class Semaphore
extends java.lang.Object
implements org.apache.avalon.excalibur.concurrent.Sync

Since:
  4.0
Version:
  CVS $Revision: 1.3 $ $Date: 2003/07/07 19:35:34 $

Constructor Summary
`Semaphore(long tokens)`

Method Summary
`void` | `acquire()`
`boolean` | `attempt(long msecs)`
`long` | `getTokens()`
`void` | `release()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Semaphore

    public Semaphore(long tokens)

Method Detail

### acquire

    public void acquire()
                 throws java.lang.InterruptedException

  Specified by:
    `acquire` in interface `org.apache.avalon.excalibur.concurrent.Sync`
  Throws:
    `java.lang.InterruptedException`

### release

    public void release()

  Specified by:
    `release` in interface `org.apache.avalon.excalibur.concurrent.Sync`

### attempt

    public boolean attempt(long msecs)
                    throws java.lang.InterruptedException

  Specified by:
    `attempt` in interface `org.apache.avalon.excalibur.concurrent.Sync`
  Throws:
    `java.lang.InterruptedException`

### getTokens

    public long getTokens()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2003 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.