Class ManilaRateLimit.ManilaLimit
- java.lang.Object
-
- org.openstack4j.openstack.manila.domain.ManilaRateLimit.ManilaLimit
-
- All Implemented Interfaces:
Serializable,RateLimit.Limit
- Enclosing class:
- ManilaRateLimit
public static class ManilaRateLimit.ManilaLimit extends Object implements RateLimit.Limit, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManilaLimit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetNextAvailable()intgetRemaining()RateLimit.TimeIntervalUnitgetUnit()intgetValue()HttpMethodgetVerb()
-
-
-
Method Detail
-
getValue
public int getValue()
- Specified by:
getValuein interfaceRateLimit.Limit- Returns:
- the number of API requests that are allowed during a time interval
-
getVerb
public HttpMethod getVerb()
- Specified by:
getVerbin interfaceRateLimit.Limit- Returns:
- the HTTP method for the API request
-
getRemaining
public int getRemaining()
- Specified by:
getRemainingin interfaceRateLimit.Limit- Returns:
- the remaining number of allowed requests
-
getUnit
public RateLimit.TimeIntervalUnit getUnit()
- Specified by:
getUnitin interfaceRateLimit.Limit- Returns:
- the time interval during which a number of API requests are allowed
-
getNextAvailable
public Date getNextAvailable()
- Specified by:
getNextAvailablein interfaceRateLimit.Limit- Returns:
- the date and time stamp when next issues are available
-
-