NullSemaphorepublic class NullSemaphore extends Object implements SemaphoreImplements a simple semaphore that does not do any
semaphore-ing. That is, the methods just immediately return. |
Fields Summary |
---|
private static final com.sun.jdo.spi.persistence.utility.logging.Logger | _loggerWhere to log messages about locking operations | private final String | _ownerFor logging, indicates on whose behalf locking is done. | private static final ResourceBundle | messagesI18N 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 void | acquire()Does nothing.
if (_logger.isLoggable(Logger.FINEST)) {
Object[] items = new Object[] {_owner};
_logger.finest("utility.nullsemaphore.acquire",items); // NOI18N
}
| public void | release()Does nothing.
if (_logger.isLoggable(Logger.FINEST)) {
Object[] items = new Object[] {_owner};
_logger.finest("utility.nullsemaphore.release",items); // NOI18N
}
|
|