Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rate limiting #1

Open
ankushs92 opened this issue Dec 2, 2017 · 0 comments
Open

Add support for rate limiting #1

ankushs92 opened this issue Dec 2, 2017 · 0 comments

Comments

@ankushs92
Copy link
Owner

Every class can extend a RateLimit class, which can have fields int rateLimit and int rateLimitRemaining .

These fields can then be accessed as :

final Linode linode = api.getLinodeById(linodeId);
final RateLimit rateLimit = linode.getRateLimit();

final int limit = rateLimit.getLimit();
final int remaining = rateLimit.getRemaining();
final int reset = rateLimit.getReset();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant