public static class LeaseTimeSet.SynchronizedLeaseTimeCollection<E> extends java.lang.Object implements ILeaseTimeSet<E>, java.io.Serializable
| Constructor and Description | 
|---|
SynchronizedLeaseTimeCollection(ILeaseTimeSet<E> c)  | 
SynchronizedLeaseTimeCollection(ILeaseTimeSet<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)  | 
void | 
setRemoveCommand(ICommand<E> cmd)
Set the remove cmd. 
 | 
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(ILeaseTimeSet<E> c)
public SynchronizedLeaseTimeCollection(ILeaseTimeSet<E> c, java.lang.Object mutex)
public void setRemoveCommand(ICommand<E> cmd)
setRemoveCommand in interface ILeaseTimeSet<E>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)
ILeaseTimeSetadd in interface ILeaseTimeSet<E>e - The entry.leasetime - The leasetime.public boolean update(E e)
ILeaseTimeSetupdate in interface ILeaseTimeSet<E>public boolean update(E e, long leasetime)
update in interface ILeaseTimeSet<E>entry - The entry.public void touch(E e)
touch in interface ILeaseTimeSet<E>entry - The entry.public void touch(E e, long leasetime)
touch in interface ILeaseTimeSet<E>entry - The entry.