public class CacheGetResult extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheGetResult.Builder |
static class |
CacheGetResult.ErrorBuilder |
static class |
CacheGetResult.Type |
| Modifier and Type | Field and Description |
|---|---|
protected Exception |
errorCause |
protected String |
invalidatedKey |
protected String[] |
invalidationKeys |
protected long |
storeTimestamp |
protected CacheGetResult.Type |
type |
protected Object |
value
The user stored value
|
| Modifier | Constructor and Description |
|---|---|
protected |
CacheGetResult(CacheGetResult.Type type) |
protected |
CacheGetResult(CacheGetResult.Type type,
Exception cause) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getErrorCause() |
String |
getInvalidatedKey() |
String[] |
getInvalidationKeys() |
long |
getStoreTimestamp() |
CacheGetResult.Type |
getType() |
Object |
getValue() |
boolean |
isAnyTypeOfError() |
boolean |
isExpired() |
boolean |
isHit() |
boolean |
isHitExpiredOrInvalidated() |
boolean |
isHitOrExpired() |
boolean |
isInvalidated() |
boolean |
isMiss() |
protected Object value
protected Exception errorCause
protected CacheGetResult.Type type
protected String[] invalidationKeys
protected String invalidatedKey
protected long storeTimestamp
protected CacheGetResult(CacheGetResult.Type type)
protected CacheGetResult(CacheGetResult.Type type, Exception cause)
public boolean isHit()
public boolean isMiss()
public boolean isExpired()
public boolean isInvalidated()
public boolean isHitOrExpired()
public boolean isHitExpiredOrInvalidated()
public boolean isAnyTypeOfError()
public Object getValue()
public Exception getErrorCause()
public CacheGetResult.Type getType()
public String[] getInvalidationKeys()
public String getInvalidatedKey()
public long getStoreTimestamp()
Copyright © 2019. All rights reserved.