Package jadex.commons.collection
Interface ILeaseTimeSet<E>
- 
- All Superinterfaces:
- java.util.Collection<E>,- java.lang.Iterable<E>
 - All Known Implementing Classes:
- LeaseTimeSet,- LeaseTimeSet.SynchronizedLeaseTimeCollection,- PassiveLeaseTimeSet
 
 public interface ILeaseTimeSet<E> extends java.util.Collection<E>Special methods for a lease time collection.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(E e, long leasetime)Add a new entry.voidsetRemoveCommand(ICommand<Tuple2<E,java.lang.Long>> cmd)Set the remove cmd.voidtouch(E e)Update the timestamp of e.voidtouch(E e, long leasetime)Update the timestamp of e.booleanupdate(E e)Add a new entry or update an existing entry.booleanupdate(E e, long leasetime)Add a new entry or update an existing entry.
 
- 
- 
- 
Method Detail- 
addboolean add(E e, long leasetime) Add a new entry.- Parameters:
- e- The entry.
- leasetime- The leasetime.
- Returns:
- True, if new entry.
 
 - 
updateboolean update(E e) Add a new entry or update an existing entry.- Parameters:
- entry- The entry.
- Returns:
- True, if new entry.
 
 - 
updateboolean update(E e, long leasetime) Add a new entry or update an existing entry.- Parameters:
- entry- The entry.
- Returns:
- True, if new entry.
 
 - 
touchvoid touch(E e) Update the timestamp of e.- Parameters:
- entry- The entry.
 
 - 
touchvoid touch(E e, long leasetime) Update the timestamp of e.- Parameters:
- entry- The entry.
 
 
- 
 
-