YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.DebouncedAction Class Reference

Runs an action once for any number of requests that arrive within a delay: the first request starts the delay, requests during it are absorbed, then the action runs once on a worker thread. More...

Collaboration diagram for de.yaacc.upnp.server.DebouncedAction:
Collaboration graph

Public Member Functions

 DebouncedAction (Runnable action, long delayMillis, String threadName)
 
void request ()
 Asks for the action; it runs once after the delay, however often this is called meanwhile.
 
void shutdown ()
 Ends the worker thread; a request that is waiting is dropped.
 

Detailed Description

Runs an action once for any number of requests that arrive within a delay: the first request starts the delay, requests during it are absorbed, then the action runs once on a worker thread.

A request after the action started starts a new round.

Member Function Documentation

◆ request()

void de.yaacc.upnp.server.DebouncedAction.request ( )

Asks for the action; it runs once after the delay, however often this is called meanwhile.

Never blocks.


The documentation for this class was generated from the following file: