LightWeightCache.Entry (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.util, class: LightWeightCache, interface: Entry

Package org.apache.hadoop.util

# Interface LightWeightCache.Entry

All Superinterfaces:
  `LightWeightGSet.LinkedElement`

All Known Implementing Classes:
  `RetryCache.CacheEntry`, `RetryCache.CacheEntryWithPayload`

Enclosing class:
  LightWeightCache<K,E extends K>

public static interface LightWeightCache.Entry extends LightWeightGSet.LinkedElement
Entries of `LightWeightCache`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getExpirationTime()`
  `void`
  `setExpirationTime(long timeNano)`
  Set the expiration time.

  ### Methods inherited from interface org.apache.hadoop.util.LightWeightGSet.LinkedElement

  `getNext, setNext`

- ## Method Details

  - ### setExpirationTime

    void setExpirationTime(long timeNano)
    Set the expiration time.
    Parameters:
      `timeNano` - input timeNano.

  - ### getExpirationTime

    long getExpirationTime()
    Returns:
      Get the expiration time.