com.sun.jdo.spi.persistence.utility
Class SemaphoreImpl

java.lang.Object
  extended by com.sun.jdo.spi.persistence.utility.SemaphoreImpl
All Implemented Interfaces:
Semaphore

public class SemaphoreImpl
extends java.lang.Object
implements Semaphore

Implements a simple semaphore.

Author:
Dave Bristor, Marina Vatkina

Constructor Summary
SemaphoreImpl(java.lang.String owner)
           
 
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
 

Constructor Detail

SemaphoreImpl

public SemaphoreImpl(java.lang.String owner)
Method Detail

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.