OptLockBuffer<T>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.concurrent.locks.Lock, java.util.List<T>, java.util.RandomAccesspublic final class OptLockArrayBuffer<T> extends java.util.ArrayList<T> implements OptLockBuffer<T>
ArrayList| Constructor | Description |
|---|---|
OptLockArrayBuffer(int capacity) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
lock() |
|
void |
lockInterruptibly() |
|
java.util.concurrent.locks.Condition |
newCondition() |
|
void |
removeRange(int fromIndex,
int toIndex) |
Publishes the
ArrayList.removeRange(int, int) method |
boolean |
tryLock() |
|
boolean |
tryLock(long time,
java.util.concurrent.TimeUnit unit) |
|
void |
unlock() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArraypublic final void removeRange(int fromIndex,
int toIndex)
ArrayList.removeRange(int, int) methodremoveRange in interface OptLockBuffer<T>removeRange in class java.util.ArrayList<T>ArrayList.removeRange(int, int)public final void lock()
lock in interface java.util.concurrent.locks.LockLock.lock()public final void lockInterruptibly()
throws java.lang.InterruptedException
lockInterruptibly in interface java.util.concurrent.locks.Lockjava.lang.InterruptedExceptionLock.lockInterruptibly()public final boolean tryLock()
tryLock in interface java.util.concurrent.locks.LockLock.tryLock()public final boolean tryLock(long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
tryLock in interface java.util.concurrent.locks.Lockjava.lang.InterruptedExceptionLock.tryLock(long, TimeUnit)public final void unlock()
unlock in interface java.util.concurrent.locks.LockLock.unlock()public final java.util.concurrent.locks.Condition newCondition()
newCondition in interface java.util.concurrent.locks.LockLock.newCondition()