public class

SimpleLock

extends Object
java.lang.Object
   ↳ com.c2call.sdk.pub.util.SimpleLock

Summary

Public Constructors
SimpleLock(boolean initialValue)
SimpleLock()
Public Methods
synchronized boolean isFalse()
synchronized boolean isTrue()
synchronized void setValue(boolean newValue)
synchronized boolean waitToSetFalse(long msTimeout)
synchronized boolean waitToSetTrue(long msTimeout)
synchronized boolean waitUntilFalse(long msTimeout)
synchronized boolean waitUntilStateIs(boolean state, long msTimeout)
synchronized boolean waitUntilTrue(long msTimeout)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SimpleLock (boolean initialValue)

public SimpleLock ()

Public Methods

public synchronized boolean isFalse ()

public synchronized boolean isTrue ()

public synchronized void setValue (boolean newValue)

public synchronized boolean waitToSetFalse (long msTimeout)

Throws
InterruptedException

public synchronized boolean waitToSetTrue (long msTimeout)

public synchronized boolean waitUntilFalse (long msTimeout)

public synchronized boolean waitUntilStateIs (boolean state, long msTimeout)

public synchronized boolean waitUntilTrue (long msTimeout)