FileDocCategorySizeDatePackage
NullSemaphore.javaAPI DocGlassfish v2 API3587Fri May 04 22:35:20 BST 2007com.sun.jdo.spi.persistence.utility

NullSemaphore

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

Fields Summary
private static final com.sun.jdo.spi.persistence.utility.logging.Logger
_logger
Where to log messages about locking operations
private final String
_owner
For logging, indicates on whose behalf locking is done.
private static final ResourceBundle
messages
I18N message handler
Constructors Summary
public NullSemaphore(String owner)


       
        _owner = owner;

        if (_logger.isLoggable(Logger.FINEST)) {
            Object[] items = new Object[] {_owner};
            _logger.finest("utility.nullsemaphore.constructor",items); // NOI18N
        }
    
Methods Summary
public voidacquire()
Does nothing.


        if (_logger.isLoggable(Logger.FINEST)) {
            Object[] items = new Object[] {_owner};
            _logger.finest("utility.nullsemaphore.acquire",items); // NOI18N
        }
    
public voidrelease()
Does nothing.


        if (_logger.isLoggable(Logger.FINEST)) {
            Object[] items = new Object[] {_owner};
            _logger.finest("utility.nullsemaphore.release",items); // NOI18N
        }