KMSClientProvider.KMSTokenRenewer, Token.TrivialRenewer@Public
@Evolving
public abstract class TokenRenewer
extends java.lang.Object
| Constructor | Description |
|---|---|
TokenRenewer() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
cancel(Token<?> token,
Configuration conf) |
Cancel the given token.
|
abstract boolean |
handleKind(Text kind) |
Does this renewer handle this kind of token?
|
abstract boolean |
isManaged(Token<?> token) |
Is the given token managed? Only managed tokens may be renewed or
cancelled.
|
abstract long |
renew(Token<?> token,
Configuration conf) |
Renew the given token.
|
public abstract boolean handleKind(Text kind)
kind - the kind of the tokenpublic abstract boolean isManaged(Token<?> token) throws java.io.IOException
token - the token being checkedjava.io.IOException - raised on errors performing I/O.public abstract long renew(Token<?> token, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
token - the token being checked.conf - configuration.java.io.IOException - raised on errors performing I/O.java.lang.InterruptedException - thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted,
either before or during the activity.public abstract void cancel(Token<?> token, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
token - the token being checked.conf - configuration.java.io.IOException - raised on errors performing I/O.java.lang.InterruptedException - thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted,
either before or during the activity.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.