public interface MutexImplementation
Mutex
.Modifier and Type | Method and Description |
---|---|
boolean |
isReadAccess() |
boolean |
isWriteAccess() |
void |
postReadRequest(Runnable run) |
void |
postWriteRequest(Runnable run) |
<T> T |
readAccess(Mutex.ExceptionAction<T> action) |
void |
readAccess(Runnable runnable) |
<T> T |
writeAccess(Mutex.ExceptionAction<T> action) |
void |
writeAccess(Runnable runnable) |
boolean isReadAccess()
boolean isWriteAccess()
void writeAccess(Runnable runnable)
<T> T writeAccess(Mutex.ExceptionAction<T> action) throws MutexException
MutexException
void readAccess(Runnable runnable)
<T> T readAccess(Mutex.ExceptionAction<T> action) throws MutexException
MutexException
void postReadRequest(Runnable run)
void postWriteRequest(Runnable run)