com.sun.jdo.spi.persistence.utility
Class NullSemaphore
java.lang.Object
com.sun.jdo.spi.persistence.utility.NullSemaphore
- All Implemented Interfaces:
- Semaphore
public class NullSemaphore
- extends Object
- implements Semaphore
Implements a simple semaphore that does not do any
semaphore-ing. That is, the methods just immediately return.
- Author:
- Dave Bristor
|
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 |
NullSemaphore
public NullSemaphore(String owner)
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.