CancelDelegationTokenRequest (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.protocolrecords, class: CancelDelegationTokenRequest

Package org.apache.hadoop.yarn.api.protocolrecords

# Class CancelDelegationTokenRequest

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.CancelDelegationTokenRequest

@Private @Unstable public abstract class CancelDelegationTokenRequest extends Object
The request issued by the client to the `ResourceManager` to cancel a delegation token.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CancelDelegationTokenRequest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract Token`
  `getDelegationToken()`
  Get the delegation token requested to be cancelled.
  `static CancelDelegationTokenRequest`
  `newInstance(Token dToken)`
  `abstract void`
  `setDelegationToken(Token dToken)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CancelDelegationTokenRequest

    public CancelDelegationTokenRequest()

- ## Method Details

  - ### newInstance

    @Private @Unstable public static CancelDelegationTokenRequest newInstance(Token dToken)

  - ### getDelegationToken

    @Private @Unstable public abstract Token getDelegationToken()
    Get the delegation token requested to be cancelled.
    Returns:
      the delegation token requested to be cancelled.

  - ### setDelegationToken

    @Private @Unstable public abstract void setDelegationToken(Token dToken)