Package com.strongdm.api
Class RateLimitMetadata
java.lang.Object
com.strongdm.api.RateLimitMetadata
RateLimitMetadata contains information about remaining requests avaialable
to the user over some timeframe.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe bucket this user/token is associated with, which may be shared between multiple users/tokens.long
getLimit()
How many total requests the user/token is authorized to make before being rate limited.long
How many remaining requests out of the limit are still avaialable.The time when remaining will be reset to limit.void
The bucket this user/token is associated with, which may be shared between multiple users/tokens.void
setLimit
(long in) How many total requests the user/token is authorized to make before being rate limited.void
setRemaining
(long in) How many remaining requests out of the limit are still avaialable.void
setResetAt
(Date in) The time when remaining will be reset to limit.
-
Constructor Details
-
RateLimitMetadata
public RateLimitMetadata()
-
-
Method Details
-
getBucket
The bucket this user/token is associated with, which may be shared between multiple users/tokens. -
setBucket
The bucket this user/token is associated with, which may be shared between multiple users/tokens. -
getLimit
public long getLimit()How many total requests the user/token is authorized to make before being rate limited. -
setLimit
public void setLimit(long in) How many total requests the user/token is authorized to make before being rate limited. -
getRemaining
public long getRemaining()How many remaining requests out of the limit are still avaialable. -
setRemaining
public void setRemaining(long in) How many remaining requests out of the limit are still avaialable. -
getResetAt
The time when remaining will be reset to limit. -
setResetAt
The time when remaining will be reset to limit.
-