Package edu.duke.cs.osprey.parallelism
Class RateLimitedThread
java.lang.Object
edu.duke.cs.osprey.parallelism.RateLimitedThread
- All Implemented Interfaces:
AutoCloseable
Runs a task no more than once every interval.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
interval
public final long interval -
unit
-
task
-
-
Constructor Details
-
RateLimitedThread
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
request
public void request()
-