|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<ManagedConnection>
com.caucho.env.dbpool.IdlePoolSet
public class IdlePoolSet
Queue (fifo) ordered set, used by the JCA code so connections can be load balanced using a round-robin.
| Method Summary | |
|---|---|
boolean |
add(ManagedConnection o)
Adds an element. |
void |
clear()
Clears the set. |
boolean |
contains(java.lang.Object o)
Returns true if the item is in the set. |
boolean |
containsAll(java.util.Collection<?> c)
Returns true if the item is in the set. |
boolean |
equals(java.lang.Object o)
Test for equality |
ManagedConnection |
first()
Peeks the first item. |
int |
hashCode()
Returns the hash code. |
boolean |
isEmpty()
Returns true if empty. |
java.util.Iterator<ManagedConnection> |
iterator()
Returns an iterator to the set. |
boolean |
remove(java.lang.Object o)
Removes an element of the set. |
boolean |
removeAll(java.util.Collection<?> c)
Removes an element of the set. |
boolean |
retainAll(java.util.Collection<?> c)
Removes an element of the set. |
int |
size()
Returns the number of elements in the set. |
java.lang.Object[] |
toArray()
Returns an array of the elements in the set. |
ManagedConnection[] |
toArray(ManagedConnection[] values)
Returns an array of the elements in the set. |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, toArray |
| Method Detail |
|---|
public int size()
size in interface java.util.Collection<ManagedConnection>size in interface java.util.Set<ManagedConnection>size in class java.util.AbstractCollection<ManagedConnection>public boolean isEmpty()
isEmpty in interface java.util.Collection<ManagedConnection>isEmpty in interface java.util.Set<ManagedConnection>isEmpty in class java.util.AbstractCollection<ManagedConnection>public ManagedConnection first()
public boolean add(ManagedConnection o)
add in interface java.util.Collection<ManagedConnection>add in interface java.util.Set<ManagedConnection>add in class java.util.AbstractCollection<ManagedConnection>public void clear()
clear in interface java.util.Collection<ManagedConnection>clear in interface java.util.Set<ManagedConnection>clear in class java.util.AbstractCollection<ManagedConnection>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<ManagedConnection>contains in interface java.util.Set<ManagedConnection>contains in class java.util.AbstractCollection<ManagedConnection>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<ManagedConnection>containsAll in interface java.util.Set<ManagedConnection>containsAll in class java.util.AbstractCollection<ManagedConnection>public java.util.Iterator<ManagedConnection> iterator()
iterator in interface java.lang.Iterable<ManagedConnection>iterator in interface java.util.Collection<ManagedConnection>iterator in interface java.util.Set<ManagedConnection>iterator in class java.util.AbstractCollection<ManagedConnection>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<ManagedConnection>remove in interface java.util.Set<ManagedConnection>remove in class java.util.AbstractCollection<ManagedConnection>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<ManagedConnection>removeAll in interface java.util.Set<ManagedConnection>removeAll in class java.util.AbstractSet<ManagedConnection>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<ManagedConnection>retainAll in interface java.util.Set<ManagedConnection>retainAll in class java.util.AbstractCollection<ManagedConnection>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<ManagedConnection>toArray in interface java.util.Set<ManagedConnection>toArray in class java.util.AbstractCollection<ManagedConnection>public ManagedConnection[] toArray(ManagedConnection[] values)
public int hashCode()
hashCode in interface java.util.Collection<ManagedConnection>hashCode in interface java.util.Set<ManagedConnection>hashCode in class java.util.AbstractSet<ManagedConnection>public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<ManagedConnection>equals in interface java.util.Set<ManagedConnection>equals in class java.util.AbstractSet<ManagedConnection>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||