Top Description Fields Constructors Methods
org.apache.derby.impl.services.locks

pack-priv Class LockTableVTI

extends Object
implements Enumeration
Class Inheritance
All Implemented Interfaces
java.util.Enumeration
Imports
org.apache.derby.iapi.services.locks.Latch, java.util.Enumeration, .NoSuchElementException, .Iterator, .ListIterator, .List, .Map

This provides an Enumeration of Latch's from a clone of the lock table. A Latch is badly named, it represents lock information.

Field Summary

Modifier and TypeField and Description
private Control
private ListIterator<E>
private Latch
private final Iterator<E>
private ListIterator<E>

Constructor Summary

AccessConstructor and Description
pack-priv
LockTableVTI(Map<K, V> clonedLockTable)

Method Summary

Modifier and TypeMethod and Description
private Latch
public boolean
hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

public Object
nextElement()

Implements java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlback to summary
private Control control
grantedListback to summary
private ListIterator<E> grantedList
nextLockback to summary
private Latch nextLock
outerControlback to summary
private final Iterator<E> outerControl
waitingListback to summary
private ListIterator<E> waitingList

Constructor Detail

LockTableVTIback to summary
pack-priv LockTableVTI(Map<K, V> clonedLockTable)

Method Detail

getNextLockback to summary
private Latch getNextLock(Control control)
hasMoreElementsback to summary
public boolean hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Doc from java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

Returns:boolean

true if and only if this enumeration object contains at least one more element to provide; false otherwise.

nextElementback to summary
public Object nextElement()

Implements java.util.Enumeration.nextElement.

Doc from java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Returns:Object

the next element of this enumeration.