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 TypeMethodDescriptionboolean
Add a new entry.void
setRemoveCommand
(Consumer<jadex.common.Tuple2<E, Long>> cmd) Set the remove cmd.void
Update the timestamp of e.void
Update the timestamp of e.boolean
Add a new entry or update an existing entry.boolean
Add 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.
-