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 theTimerService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyTimeout(K key, UUID ticket)Notify the listener about the timeout for an event identified by key.
-
-
-
Method Detail
-
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 eventticket- used to check whether the timeout is still valid
-
-