Interface IProcessingUnitThrottlingSupport
-
- All Known Implementing Classes:
ParallelProcessingUnit
public interface IProcessingUnitThrottlingSupportDefines the processing unit throttling support. This interface should only implemented in case aIProcessingUnithas specialized requirements regarding the throttling, e.g. ParallelProcesingUnit otherwise the framework already covers this properly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.github.toolarium.common.bandwidth.IBandwidthThrottlinggetBandwidthProcessingUnitThrottling()Get the bandwidth processing unit throttlingvoidsetMaxNumberOfProcessingUnitCallsPerSecond(java.lang.String id, java.lang.String name, java.lang.Long maxNumberOfProcessingUnitCallsPerSecond)Set the max number of processing unit calls per seconds
-
-
-
Method Detail
-
setMaxNumberOfProcessingUnitCallsPerSecond
void setMaxNumberOfProcessingUnitCallsPerSecond(java.lang.String id, java.lang.String name, java.lang.Long maxNumberOfProcessingUnitCallsPerSecond)Set the max number of processing unit calls per seconds- Parameters:
id- the unique id of the processingname- the name of the processingmaxNumberOfProcessingUnitCallsPerSecond- The max number of processing unit calls per seconds
-
getBandwidthProcessingUnitThrottling
com.github.toolarium.common.bandwidth.IBandwidthThrottling getBandwidthProcessingUnitThrottling()
Get the bandwidth processing unit throttling- Returns:
- the bandwidth processing unit throttling
-
-