Coverage Report - net.wotonomy.foundation.NSLocking
 
Classes in this File Line Coverage Branch Coverage Complexity
NSLocking
N/A 
N/A 
1
 
 1  
 /*
 2  
 Wotonomy: OpenStep design patterns for pure Java applications.
 3  
 Copyright (C) 2002 Israfil consulting Services Corporation
 4  
 
 5  
 This library is free software; you can redistribute it and/or
 6  
 modify it under the terms of the GNU Lesser General Public
 7  
 License as published by the Free Software Foundation; either
 8  
 version 2.1 of the License, or (at your option) any later version.
 9  
 
 10  
 This library is distributed in the hope that it will be useful,
 11  
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
 Lesser General Public License for more details.
 14  
 
 15  
 You should have received a copy of the GNU Lesser General Public
 16  
 License along with this library; if not, see http://www.gnu.org
 17  
 
 18  
 $Id: NSLocking.java 892 2006-02-16 12:47:16 +0000 (Thu, 16 Feb 2006) cgruber $
 19  
 
 20  
 */
 21  
 
 22  
 package net.wotonomy.foundation;
 23  
 
 24  
 /**
 25  
 * Defines a simple locking protocol. Very course-grain locking.
 26  
 *
 27  
 * @author cgruber@israfil.net
 28  
 * @author $Author: cgruber $
 29  
 * @version $Revision: 892 $
 30  
 */
 31  
 
 32  
 public interface NSLocking {
 33  
 
 34  
     public static final long OneSecond = 1000L;
 35  
     public static final long OneMinute = 60000L;
 36  
     public static final long OneHour = 0x36ee80L;
 37  
     public static final long OneDay = 0x5265c00L;
 38  
     public static final long OneWeek = 0x240c8400L;
 39  
     public static final long OneYear = 0x758f0dfc0L;
 40  
     public static final long OneCentury = 0x2debe176700L;
 41  
 
 42  
     public abstract void lock();
 43  
 
 44  
     public abstract void unlock();
 45  
 
 46  
 }
 47  
 
 48  
 /*
 49  
  * $Log$
 50  
  * Revision 1.1  2006/02/16 12:47:16  cgruber
 51  
  * Check in all sources in eclipse-friendly maven-enabled packages.
 52  
  *
 53  
  * Revision 1.1  2002/07/14 21:56:16  mpowers
 54  
  * Contributions from cgruber.
 55  
  *
 56  
  * Revision 1.2  2002/06/21 22:11:19  cgruber
 57  
  * Add a log trail
 58  
  *
 59  
  */