rrdService.service
Interface LockItf

All Known Implementing Classes:
RoundRobin, Lock

public interface LockItf

The interface LockItf implement a lock for writting reading and deleting

Version:
1.0 date : 15/07/2001
key-word
shared variable
Author:
Damien Pellier
See Also:
LockItf, mutex

Field Summary
static int DELETE
          Lock status delete
static int READ_WRITE
          Lock status ReadWrite
 
Method Summary
 int getStatus()
          getStatus return the status of lock return int reprsenting the status READ_WRITE or DELETE
 boolean lockDelete()
          Lock in deleting acces return boolean true if the lock is taken
 boolean lockRead()
          Lock in reading acces return boolean true if the lock is taken
 boolean lockWrite()
          Lock in writting acces return boolean true if the lock is taken
 boolean unLockRead()
          Unlock in reading acces return boolean true if the lock is left
 boolean unLockWrite()
          Unlock in writting acces return boolean true if the lock is left
 

Field Detail

DELETE

public static final int DELETE
Lock status delete

READ_WRITE

public static final int READ_WRITE
Lock status ReadWrite
Method Detail

getStatus

public int getStatus()
              throws java.lang.Exception
getStatus return the status of lock return int reprsenting the status READ_WRITE or DELETE

lockDelete

public boolean lockDelete()
                   throws java.lang.Exception
Lock in deleting acces return boolean true if the lock is taken

lockRead

public boolean lockRead()
                 throws java.lang.Exception
Lock in reading acces return boolean true if the lock is taken

lockWrite

public boolean lockWrite()
                  throws java.lang.Exception
Lock in writting acces return boolean true if the lock is taken

unLockRead

public boolean unLockRead()
                   throws java.lang.Exception
Unlock in reading acces return boolean true if the lock is left

unLockWrite

public boolean unLockWrite()
                    throws java.lang.Exception
Unlock in writting acces return boolean true if the lock is left

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.