Package jadex.collection
Interface ILeaseTimeSet<E>
- All Superinterfaces:
Collection<E>,Iterable<E>
- All Known Implementing Classes:
LeaseTimeSet,LeaseTimeSet.SynchronizedLeaseTimeCollection,PassiveLeaseTimeSet
Special methods for a lease time collection.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a new entry.voidsetRemoveCommand(Consumer<jadex.common.Tuple2<E, Long>> cmd) Set the remove cmd.voidUpdate the timestamp of e.voidUpdate the timestamp of e.booleanAdd a new entry or update an existing entry.booleanAdd a new entry or update an existing entry.
-
Method Details
-
add
Add a new entry.- Parameters:
e- The entry.leasetime- The leasetime.- Returns:
- True, if new entry.
-
update
Add a new entry or update an existing entry.- Parameters:
entry- The entry.- Returns:
- True, if new entry.
-
update
Add a new entry or update an existing entry.- Parameters:
entry- The entry.- Returns:
- True, if new entry.
-
touch
Update the timestamp of e.- Parameters:
entry- The entry.
-
touch
Update the timestamp of e.- Parameters:
entry- The entry.
-
setRemoveCommand
Set the remove cmd.
-