Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.api;

Used to limit the rate fo calls to the API client-side

Author(s):
Rob Rua (FatalElement - NA) (robrua@alumni.cmu.edu)
 
 public class RateLimit {
     public final int callsPerEpochsecondsPerEpoch;

    

Parameters:
callsPerEpoch the number of calls allowed in each epoch
secondsPerEpoch the number of seconds in each epoch
    public RateLimit(final int callsPerEpochfinal int secondsPerEpoch) {
        this. = callsPerEpoch;
        this. = secondsPerEpoch;
    }
New to GrepCode? Check out our FAQ X