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

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

public class NullSemaphore
extends java.lang.Object
implements Semaphore

Implements a simple semaphore that does not do any semaphore-ing. That is, the methods just immediately return.

Author:
Dave Bristor

Constructor Summary
NullSemaphore(java.lang.String owner)
           
 
Method Summary
 void acquire()
          Does nothing.
 void release()
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSemaphore

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

acquire

public void acquire()
Does nothing.

Specified by:
acquire in interface Semaphore

release

public void release()
Does nothing.

Specified by:
release in interface Semaphore


Copyright © 2012 GlassFish Community. All Rights Reserved.