public class ReadWriteLockPoint extends Object
| Constructor and Description |
|---|
ReadWriteLockPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRead()
To call when the thread leaves the read mode and release this lock point.
|
void |
endWrite()
To call when the thread leaves the write mode and release this lock point.
|
boolean |
isUsed()
Return true if there is currently neither reader or writer.
|
void |
startRead()
To call when a thread wants to enter read mode.
|
Async<NoException> |
startReadAsync()
To call when a thread wants to enter read mode.
|
Async<NoException> |
startReadAsync(boolean returnNullIfReady)
To call when a thread wants to enter read mode.
|
void |
startWrite()
To call when a thread wants to enter write mode.
|
Async<NoException> |
startWriteAsync()
To call when a thread wants to enter write mode.
|
Async<NoException> |
startWriteAsync(boolean returnNullIfReady)
To call when a thread wants to enter write mode.
|
public void startRead()
public Async<NoException> startReadAsync()
public Async<NoException> startReadAsync(boolean returnNullIfReady)
public void endRead()
public void startWrite()
public Async<NoException> startWriteAsync()
public Async<NoException> startWriteAsync(boolean returnNullIfReady)
public void endWrite()
public boolean isUsed()
Copyright © 2019. All rights reserved.