@Entity public class Rate extends Object
limit - How many requests can be executed by the user. Maps to X-RateLimit-Limit header remaining - How many requests are still left on the current window. Maps to X-RateLimit-Remaining header reset - Epoch when the rate is replenished by limit. Maps to X-RateLimit-Reset header
| Constructor | Description |
|---|---|
Rate() |
|
Rate(String key,
Long remaining,
Long remainingQuota,
Long reset,
Date expiration) |
| Modifier and Type | Method | Description |
|---|---|---|
Date |
getExpiration() |
|
String |
getKey() |
|
Long |
getRemaining() |
|
Long |
getRemainingQuota() |
|
Long |
getReset() |
|
void |
setExpiration(Date expiration) |
|
void |
setKey(String key) |
|
void |
setRemaining(Long remaining) |
|
void |
setRemainingQuota(Long remainingQuota) |
|
void |
setReset(Long reset) |
public String getKey()
public void setKey(String key)
public Long getRemaining()
public void setRemaining(Long remaining)
public Long getRemainingQuota()
public void setRemainingQuota(Long remainingQuota)
public Long getReset()
public void setReset(Long reset)
public Date getExpiration()
public void setExpiration(Date expiration)
Copyright © 2019. All rights reserved.