private static class KerberosUtil.SoftCache.ValueCell extends SoftReference
Modifier and Type | Field and Description |
---|---|
private static Object |
INVALID_KEY |
private Object |
key |
Modifier | Constructor and Description |
---|---|
private |
ValueCell(Object key,
Object value,
ReferenceQueue queue) |
Modifier and Type | Method and Description |
---|---|
private static KerberosUtil.SoftCache.ValueCell |
create(Object key,
Object value,
ReferenceQueue queue) |
private void |
drop()
Clear the soft reference, and mark the cell as invalid
|
private boolean |
isValid()
Return true if this cell has not been dropped, false
otherwise
|
private static Object |
strip(Object val,
boolean drop)
Extract the encapsulated value if the passed in object
is an instance of ValueCell, clear the soft reference
and mark the cell as invalid if drop is true.
|
get
clear, enqueue, isEnqueued
private ValueCell(Object key, Object value, ReferenceQueue queue)
private static KerberosUtil.SoftCache.ValueCell create(Object key, Object value, ReferenceQueue queue)
private static Object strip(Object val, boolean drop)
private boolean isValid()
private void drop()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.