public abstract class ReadWriteTask
extends java.lang.Object
Constructor and Description |
---|
ReadWriteTask() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
doInReadLock(java.util.concurrent.locks.ReadWriteLock lock)
Call invoke() after acquiring a read lock, and then release it.
|
java.lang.Object |
doInWriteLock(java.util.concurrent.locks.ReadWriteLock lock)
Call invoke() after acquiring a write lock, and then release it.
|
abstract java.lang.Object |
invoke()
The method will be invoked after acquiring a read-write lock and release the lock after invocation.
|
public abstract java.lang.Object invoke()
public java.lang.Object doInWriteLock(java.util.concurrent.locks.ReadWriteLock lock)
public java.lang.Object doInReadLock(java.util.concurrent.locks.ReadWriteLock lock)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.