java.lang.Object
org.kohsuke.github.GHRateLimit
Rate limit.
- Author:
- Liam Newman
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A rate limit record.static class
A limit record used as a placeholder when the actual limit is not known. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals.getCore()
The core object provides the rate limit status for all non-search-related resources in the REST API.The graphql record provides the rate limit status for the GraphQL API.The integration manifest record provides the rate limit status for the GitHub App Manifest code conversion endpoint.int
getLimit()
Gets the total number of Core API calls per hour allotted for this connection.int
Gets the remaining number of Core APIs requests allowed before this connection will be throttled.Returns the date at which the Core API rate limit will reset.long
Gets the time in epoch seconds when the Core API rate limit will reset.The search record provides the rate limit status for the Search API.int
hashCode()
Hash code.boolean
Whether the reset date for the Core API rate limit has passed.toString()
To string.
-
Method Details
-
getResetDate
Returns the date at which the Core API rate limit will reset.- Returns:
- the calculated date at which the rate limit has or will reset.
-
getRemaining
public int getRemaining()Gets the remaining number of Core APIs requests allowed before this connection will be throttled.- Returns:
- an integer
- Since:
- 1.100
-
getLimit
public int getLimit()Gets the total number of Core API calls per hour allotted for this connection.- Returns:
- an integer
- Since:
- 1.100
-
getResetEpochSeconds
public long getResetEpochSeconds()Gets the time in epoch seconds when the Core API rate limit will reset.- Returns:
- a long
- Since:
- 1.100
-
isExpired
public boolean isExpired()Whether the reset date for the Core API rate limit has passed.- Returns:
- true if the rate limit reset date has passed. Otherwise false.
- Since:
- 1.100
-
getCore
The core object provides the rate limit status for all non-search-related resources in the REST API.- Returns:
- a rate limit record
- Since:
- 1.100
-
getSearch
The search record provides the rate limit status for the Search API.- Returns:
- a rate limit record
- Since:
- 1.115
-
getGraphQL
The graphql record provides the rate limit status for the GraphQL API.- Returns:
- a rate limit record
- Since:
- 1.115
-
getIntegrationManifest
The integration manifest record provides the rate limit status for the GitHub App Manifest code conversion endpoint.- Returns:
- a rate limit record
- Since:
- 1.115
-
toString
To string. -
equals
Equals. -
hashCode
public int hashCode()Hash code.
-