Interface ILeaseTimeSet<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean add​(E e, long leasetime)
      Add a new entry.
      void setRemoveCommand​(ICommand<Tuple2<E,​java.lang.Long>> cmd)
      Set the remove cmd.
      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.
      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Method Detail

      • add

        boolean add​(E e,
                    long leasetime)
        Add a new entry.
        Parameters:
        e - The entry.
        leasetime - The leasetime.
        Returns:
        True, if new entry.
      • update

        boolean update​(E e)
        Add a new entry or update an existing entry.
        Parameters:
        entry - The entry.
        Returns:
        True, if new entry.
      • update

        boolean update​(E e,
                       long leasetime)
        Add a new entry or update an existing entry.
        Parameters:
        entry - The entry.
        Returns:
        True, if new entry.
      • touch

        void touch​(E e)
        Update the timestamp of e.
        Parameters:
        entry - The entry.
      • touch

        void touch​(E e,
                   long leasetime)
        Update the timestamp of e.
        Parameters:
        entry - The entry.
      • setRemoveCommand

        void setRemoveCommand​(ICommand<Tuple2<E,​java.lang.Long>> cmd)
        Set the remove cmd.