public class Throttle extends Object
Constructor and Description |
---|
Throttle(Meter meter,
int unitsPerSecond) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception) |
Meter |
getMeter() |
double |
getPeekUnitsPerSecond() |
int |
getUnitsPerSecond() |
void |
setUnitsPerSecond(int unitsPerSecond) |
void |
throttle() |
public Throttle(Meter meter, int unitsPerSecond)
public Meter getMeter()
public int getUnitsPerSecond()
public void setUnitsPerSecond(int unitsPerSecond)
public double getPeekUnitsPerSecond()
public void throttle() throws InterruptedException
InterruptedException
public DataException addExceptionProperties(DataException exception)
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.