org.jboss.ha.framework.server.lock
Class LocalAndClusterLockManager
java.lang.Object
org.jboss.ha.framework.server.lock.LocalAndClusterLockManager
public class LocalAndClusterLockManager
- extends Object
- Version:
- $Revision:$
- Author:
- Brian Stansberry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalAndClusterLockManager
public LocalAndClusterLockManager(String serviceHAName,
org.jboss.ha.framework.interfaces.HAPartition partition)
lockLocally
public void lockLocally(Serializable lockName,
long timeout)
throws TimeoutException,
InterruptedException
- Throws:
TimeoutException
InterruptedException
unlockLocally
public void unlockLocally(Serializable lockName)
lockGlobally
public void lockGlobally(Serializable lockName,
long timeout)
throws TimeoutException,
InterruptedException
- Throws:
TimeoutException
InterruptedException
unlockGlobally
public void unlockGlobally(Serializable lockName)
start
public void start()
throws Exception
- Throws:
Exception
stop
public void stop()
throws Exception
- Throws:
Exception
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.