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 TypeMethodDescriptionvoidnotifyTimeout(K key, UUID ticket) Notify the listener about the timeout for an event identified by key.
-
Method Details
-
notifyTimeout
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 eventticket- used to check whether the timeout is still valid
-