com.sun.jdo.spi.persistence.utility
Class SemaphoreImpl
java.lang.Object
com.sun.jdo.spi.persistence.utility.SemaphoreImpl
- All Implemented Interfaces:
- Semaphore
public class SemaphoreImpl
- extends Object
- implements Semaphore
Implements a simple semaphore.
- Author:
- Dave Bristor, Marina Vatkina
|
Method Summary |
void |
acquire()
Acquire a lock. |
void |
release()
Release a lock. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemaphoreImpl
public SemaphoreImpl(String owner)
acquire
public void acquire()
- Acquire a lock.
- Specified by:
acquire in interface Semaphore
release
public void release()
- Release a lock.
- Specified by:
release in interface Semaphore
Copyright © 2012 GlassFish Community. All Rights Reserved.