@Deprecated
public class SingleRemoveSynchronizedAddLock
extends java.lang.Object
Constructor and Description |
---|
SingleRemoveSynchronizedAddLock()
Deprecated.
|
SingleRemoveSynchronizedAddLock(boolean dataAvailable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abortRemove()
Deprecated.
Abort any polling remover thread
|
long |
getAddWaitTimeout()
Deprecated.
|
long |
getRemoveWaitTimeout()
Deprecated.
|
boolean |
isAddLocked()
Deprecated.
Check if an add thread owns the lock.
|
boolean |
isDataAvailable()
Deprecated.
Check if the locked object has data available
i.e. the remover can stop poling and get the lock.
|
boolean |
isRemoveLocked()
Deprecated.
Check if the remove thread owns the lock.
|
boolean |
isRemovePolling()
Deprecated.
Check if the remove thread is polling.
|
void |
lockAdd()
Deprecated.
Acquires the lock by an add thread and sets the add flag.
|
boolean |
lockRemove()
Deprecated.
Acquires the lock by the remove thread and sets the remove flag.
|
void |
setAddWaitTimeout(long timeout)
Deprecated.
Set value of addWaitTimeout
|
void |
setRemoveWaitTimeout(long timeout)
Deprecated.
Set value of removeWaitTimeout
|
void |
unlockAdd(boolean dataAvailable)
Deprecated.
Releases the lock by an add thread and reset the remove flag.
|
void |
unlockRemove()
Deprecated.
Releases the lock by the remove thread and reset the add flag.
|
public SingleRemoveSynchronizedAddLock()
public SingleRemoveSynchronizedAddLock(boolean dataAvailable)
public long getAddWaitTimeout()
public void setAddWaitTimeout(long timeout)
public long getRemoveWaitTimeout()
public void setRemoveWaitTimeout(long timeout)
public boolean isDataAvailable()
public boolean isAddLocked()
public boolean isRemoveLocked()
public boolean isRemovePolling()
public void lockAdd()
public boolean lockRemove()
public void unlockAdd(boolean dataAvailable)
public void unlockRemove()
public void abortRemove()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.