public interface RateLimitRequestToken extends Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
bind()
Bind the counters to the token.
|
default void |
close()
By default, close will trigger unbind.
|
boolean |
isBound()
Check if the token is bound.
|
void |
unBind()
Release the token's counters.
|
boolean isBound()
boolean bind()
void unBind()
default void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- if close failsCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.