jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.calculations.common
Class AutoThrottle

Object
  extended by com.chemaxon.calculations.common.AutoThrottle

@Beta
public class AutoThrottle
extends Object

Throttles interactive periodic events.

Invocation counts are represented as longs.

This class is not thread safe.

Please note that this class is marked with Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Author:
Gabor Imre

Constructor Summary
AutoThrottle(long targetDelayInMs, boolean displayFirst)
          Construct an autothrottle which targets a time delay.
 
Method Summary
 boolean invocation()
          Sign an invocation to query next throttled event.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoThrottle

public AutoThrottle(long targetDelayInMs,
                    boolean displayFirst)
Construct an autothrottle which targets a time delay.

Parameters:
targetDelayInMs - Targeted time delay in ms. When 0 is passed every invocation will result in a suggested display. For negative numbers passed no display will happen.
displayFirst - True when first invocation should display
Method Detail

invocation

public boolean invocation()
Sign an invocation to query next throttled event.

Returns:
true when display suggested

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)