org.objectweb.perseus.concurrency.distributed.globallock.lib

Class GlobalLockWaiterImpl

Implemented Interfaces:
GlobalLockWaiter

public class GlobalLockWaiterImpl
extends java.lang.Object
implements GlobalLockWaiter

Copyright (C) 2003-2004 - France Telecom R&D This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR AE PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Release: 1.0 Authors: Olivier Lobry (olivier.lobry@rd.francetelecom.com)

Method Summary

byte
getLockLevel()
void
signalHandled()
boolean
signalLock(byte signaledLck, GlobalLockWaiterImpl waitFor)
void
waitHandled(long timeout)
boolean
waitLock(long timeout)

Method Details

getLockLevel

public byte getLockLevel()
Specified by:
getLockLevel in interface GlobalLockWaiter


signalHandled

public void signalHandled()
Specified by:
signalHandled in interface GlobalLockWaiter


signalLock

public boolean signalLock(byte signaledLck,
                          GlobalLockWaiterImpl waitFor)


waitHandled

public void waitHandled(long timeout)
            throws InterruptedException


waitLock

public boolean waitLock(long timeout)
            throws InterruptedException
Specified by:
waitLock in interface GlobalLockWaiter


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.