public class CallbackRateLimitRequestToken extends Object implements RateLimitRequestToken
| Constructor and Description |
|---|
CallbackRateLimitRequestToken(boolean isBound,
RateLimitCleanupOnRequestComplete rateLimitCleanup)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind()
Bind the counters to the token.
|
protected void |
finalize() |
boolean |
isBound()
Check if the token is bound.
|
void |
unBind()
Release the token's counters.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic CallbackRateLimitRequestToken(boolean isBound,
RateLimitCleanupOnRequestComplete rateLimitCleanup)
isBound - Indicate whether or not the request associated with this token is valid (bound) or notrateLimitCleanup - The callback for cleaning up after the request associated with this token is completepublic boolean isBound()
RateLimitRequestTokenisBound in interface RateLimitRequestTokenpublic boolean bind()
RateLimitRequestTokenbind in interface RateLimitRequestTokenpublic void unBind()
RateLimitRequestTokenunBind in interface RateLimitRequestTokenCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.