Interface IProcessingUnitThrottlingSupport

  • All Known Implementing Classes:
    ParallelProcessingUnit

    public interface IProcessingUnitThrottlingSupport
    Defines the processing unit throttling support. This interface should only implemented in case a IProcessingUnit has specialized requirements regarding the throttling, e.g. ParallelProcesingUnit otherwise the framework already covers this properly.
    • 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 processing
        name - the name of the processing
        maxNumberOfProcessingUnitCallsPerSecond - 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