Interface TimeoutListener<K>

Type Parameters:
K - Type of the timeout key
All Known Subinterfaces:
TaskSlotTable<T>
All Known Implementing Classes:
TaskSlotTableImpl

public interface TimeoutListener<K>
Listener for timeout events by the TimerService.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    notifyTimeout(K key, UUID ticket)
    Notify the listener about the timeout for an event identified by key.
  • Method Details

    • notifyTimeout

      void notifyTimeout(K key, UUID ticket)
      Notify the listener about the timeout for an event identified by key. Additionally the method is called with the timeout ticket which allows to identify outdated timeout events.
      Parameters:
      key - identifying the timed out event
      ticket - used to check whether the timeout is still valid