Package org.apache.hadoop.ipc
Class RetryCache.CacheEntry
java.lang.Object
org.apache.hadoop.ipc.RetryCache.CacheEntry
- All Implemented Interfaces:
LightWeightCache.Entry,LightWeightGSet.LinkedElement
- Direct Known Subclasses:
RetryCache.CacheEntryWithPayload
- Enclosing class:
- RetryCache
CacheEntry is tracked using unique client ID and callId of the RPC request.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetNext()inthashCode()booleanvoidsetExpirationTime(long timeNano) Set the expiration time.voidSet the next element.toString()
-
Method Details
-
hashCode
public int hashCode() -
equals
-
setNext
Description copied from interface:LightWeightGSet.LinkedElementSet the next element.- Specified by:
setNextin interfaceLightWeightGSet.LinkedElement- Parameters:
next- inputNext.
-
getNext
- Specified by:
getNextin interfaceLightWeightGSet.LinkedElement- Returns:
- Get the next element.
-
isSuccess
public boolean isSuccess() -
setExpirationTime
public void setExpirationTime(long timeNano) Description copied from interface:LightWeightCache.EntrySet the expiration time.- Specified by:
setExpirationTimein interfaceLightWeightCache.Entry- Parameters:
timeNano- input timeNano.
-
getExpirationTime
public long getExpirationTime()- Specified by:
getExpirationTimein interfaceLightWeightCache.Entry- Returns:
- Get the expiration time.
-
toString
-