java.lang.Object
org.kohsuke.github.GHRateLimit
Rate limit.
- Author:
- Liam Newman
-
Nested Class Summary
Nested ClassesModifier 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()
Deprecated.int
Deprecated.usegetCore()
Deprecated.usegetCore()
long
Deprecated.usegetCore()
The search record provides the rate limit status for the Search API.int
hashCode()
Hash code.boolean
Deprecated.usegetCore()
toString()
To string.
-
Method Details
-
getResetDate
Deprecated.usegetCore()
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
Deprecated.usegetCore()
Gets the remaining number of Core APIs requests allowed before this connection will be throttled.- Returns:
- an integer
- Since:
- 1.100
-
getLimit
Deprecated.usegetCore()
Gets the total number of Core API calls per hour allotted for this connection.- Returns:
- an integer
- Since:
- 1.100
-
getResetEpochSeconds
Deprecated.usegetCore()
Gets the time in epoch seconds when the Core API rate limit will reset.- Returns:
- a long
- Since:
- 1.100
-
isExpired
Deprecated.usegetCore()
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.
-
getCore()