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, wait
close
public 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()
RateLimitRequestToken
isBound
in interface RateLimitRequestToken
public boolean bind()
RateLimitRequestToken
bind
in interface RateLimitRequestToken
public void unBind()
RateLimitRequestToken
unBind
in interface RateLimitRequestToken
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.