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
  • Constructor Details

    • NullSemaphore

      public NullSemaphore(String owner)
  • Method Details

    • acquire

      public void acquire()
      Does nothing.
      Specified by:
      acquire in interface Semaphore
    • release

      public void release()
      Does nothing.
      Specified by:
      release in interface Semaphore