com.arjuna.ats.txoj.semaphore
Class Semaphore
java.lang.Object
com.arjuna.ats.txoj.semaphore.Semaphore
public class Semaphore
- extends java.lang.Object
Semaphore interface. Binds to interpreter specific implementation.
- Since:
- JTS 1.0.
- Version:
- $Id: Semaphore.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SM_LOCKED
public static final int SM_LOCKED
- See Also:
- Constant Field Values
SM_UNLOCKED
public static final int SM_UNLOCKED
- See Also:
- Constant Field Values
SM_WOULD_BLOCK
public static final int SM_WOULD_BLOCK
- See Also:
- Constant Field Values
SM_ERROR
public static final int SM_ERROR
- See Also:
- Constant Field Values
Semaphore
public Semaphore(java.lang.String key)
- Create a semaphore with the default implementation.
Semaphore
public Semaphore(ClassName type)
Semaphore
public Semaphore(ObjectName objName)
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
lock
public int lock()
unlock
public int unlock()
tryLock
public int tryLock()
className
public ClassName className()