public static class LeaseTimeCollection.SynchronizedLeaseTimeCollection<E> extends java.lang.Object implements ILeaseTimeCollection<E>, java.io.Serializable
| Constructor and Description | 
|---|
| SynchronizedLeaseTimeCollection(ILeaseTimeCollection<E> c) | 
| SynchronizedLeaseTimeCollection(ILeaseTimeCollection<E> c,
                               java.lang.Object mutex) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(E e) | 
| boolean | add(E e,
   long leasetime)Add a new entry. | 
| boolean | addAll(java.util.Collection<? extends E> coll) | 
| void | clear() | 
| boolean | contains(java.lang.Object o) | 
| boolean | containsAll(java.util.Collection<?> coll) | 
| boolean | isEmpty() | 
| java.util.Iterator<E> | iterator() | 
| boolean | remove(java.lang.Object o) | 
| boolean | removeAll(java.util.Collection<?> coll) | 
| boolean | retainAll(java.util.Collection<?> coll) | 
| int | size() | 
| java.lang.Object[] | toArray() | 
| <T> T[] | toArray(T[] a) | 
| java.lang.String | toString() | 
| void | touch(E e)Update the timestamp of e. | 
| void | touch(E e,
     long leasetime)Update the timestamp of e. | 
| boolean | update(E e)Add a new entry or update an existing entry. | 
| boolean | update(E e,
      long leasetime)Add a new entry or update an existing entry. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SynchronizedLeaseTimeCollection(ILeaseTimeCollection<E> c)
public SynchronizedLeaseTimeCollection(ILeaseTimeCollection<E> c, java.lang.Object mutex)
public int size()
size in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> coll)
containsAll in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> coll)
addAll in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> coll)
removeAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> coll)
retainAll in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean add(E e, long leasetime)
ILeaseTimeCollectionadd in interface ILeaseTimeCollection<E>e - The entry.leasetime - The leasetime.public boolean update(E e)
ILeaseTimeCollectionupdate in interface ILeaseTimeCollection<E>public boolean update(E e, long leasetime)
update in interface ILeaseTimeCollection<E>entry - The entry.public void touch(E e)
touch in interface ILeaseTimeCollection<E>entry - The entry.public void touch(E e, long leasetime)
touch in interface ILeaseTimeCollection<E>entry - The entry.