org.jclouds.openstack.nova.domain
Class RateLimit
java.lang.Object
org.jclouds.openstack.nova.domain.RateLimit
public class RateLimit
- extends Object
RateLimit.
we specify rate limits in terms of both a human readable wild-card URI and a machine processable
regular expression. The regular expression boundary matcher '^' takes affect after the root URI
path. For example, the regular expression ^/servers would match the bolded portion of the
following URI: https://servers.api.rackspacecloud.com/v1.0/3542812 /servers .
Rate limits are applied in order relative to the verb, going from least to most specific. For
example, although the threshold for POST to /servers is 25 per day, one cannot POST to /servers
more than 10 times within a single minute because the rate limits for any POST is 10/min. In the
event you exceed the thresholds established for your identity, a 413 Rate Control HTTP response
will be returned with a Reply-After header to notify the client when theyagain.
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RateLimit
public RateLimit(String uri,
String regex,
int remaining,
long resetTime,
RateLimitUnit unit,
int value,
javax.ws.rs.HttpMethod verb)
getUri
public String getUri()
getRegex
public String getRegex()
getRemaining
public int getRemaining()
getResetTime
public long getResetTime()
getUnit
public RateLimitUnit getUnit()
getValue
public int getValue()
getVerb
public javax.ws.rs.HttpMethod getVerb()
Copyright © 2009-2011 jclouds. All Rights Reserved.