Method Summary |
|
public synchronized void | abortRemove() |
public synchronized long | getAddWaitTimeout() |
public synchronized long | getRemoveWaitTimeout() |
public synchronized boolean | isAddLocked() Check if an add thread owns the lock. |
public synchronized boolean | isDataAvailable() Check if the locked object has data available
i.e. |
public synchronized boolean | isRemoveLocked() Check if the remove thread owns the lock. |
public synchronized boolean | isRemovePolling() Check if the remove thread is polling. |
public synchronized void | lockAdd() Acquires the lock by an add thread and sets the add flag. |
public synchronized boolean | lockRemove() Acquires the lock by the remove thread and sets the remove flag. |
public synchronized void | setAddWaitTimeout(long timeout) |
public synchronized void | setRemoveWaitTimeout(long timeout) |
public synchronized void | unlockAdd(boolean dataAvailable) Releases the lock by an add thread and reset the remove flag. |
public synchronized void | unlockRemove() Releases the lock by the remove thread and reset the add flag. |