| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final K | |
| private final long | |
| private final V |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
object to be compared for equality with this map entry o)Overrides java. Implements java. |
| public long | expiresAt()
Implements com. Ticker#read() ticks for when this entry expires.
|
| public static <K, V> SnapshotEntry | |
| public static <K, V> SnapshotEntry | forEntry(K key, V value, long snapshot, int weight, long expiresAt, long refreshableAt)
Returns a cache entry with the specified metadata. |
| public K | |
| public V | |
| public int | hashCode()
Overrides java. Implements java. |
| public long | refreshableAt()
Implements com. Ticker#read() ticks for when this entry becomes refreshable.
|
| public V | setValue(V
new value to be stored in this entry value)Implements java. |
| public long | snapshotAt()
Implements com. Ticker#read() ticks for when this snapshot of the entry was taken.
|
| public String | |
| public int | weight()
Implements com. |
| key | back to summary |
|---|---|
| private final K key | |
| snapshot | back to summary |
|---|---|
| private final long snapshot | |
| value | back to summary |
|---|---|
| private final V value | |
| SnapshotEntry | back to summary |
|---|---|
| pack-priv SnapshotEntry(K key, V value, long snapshot) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Doc from java. Compares the specified object with this entry for equality.
Returns
(e1.getKey()==null ?
e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
(e1.getValue()==null ?
e2.getValue()==null : e1.getValue().equals(e2.getValue()))
This ensures that the equals method works properly across
different implementations of the Map.Entry interface.
| |
| expiresAt | back to summary |
|---|---|
| public long expiresAt() Implements com. Doc from com. Returns the
| |
| forEntry | back to summary |
|---|---|
| public static <K, V> SnapshotEntry Returns a cache entry containing the given key, value, and snapshot. | |
| forEntry | back to summary |
|---|---|
| public static <K, V> SnapshotEntry Returns a cache entry with the specified metadata. | |
| getKey | back to summary |
|---|---|
| public K getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map entry. The hash code
of a map entry
(e.getKey()==null ? 0 : e.getKey().hashCode()) ^
(e.getValue()==null ? 0 : e.getValue().hashCode())
This ensures that e1.equals(e2) implies that
e1.hashCode()==e2.hashCode() for any two Entries
e1 and e2, as required by the general
contract of Object.hashCode.
| |
| refreshableAt | back to summary |
|---|---|
| public long refreshableAt() Implements com. Doc from com. Returns the
| |
| setValue | back to summary |
|---|---|
| public V setValue(V value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |
| snapshotAt | back to summary |
|---|---|
| public long snapshotAt() Implements com. Doc from com. Returns the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| weight | back to summary |
|---|---|
| public int weight() Implements com. Doc from com. Returns the entry's weight. If the cache was not configured with a maximum weight then this
value is always
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | refreshableAt()
Overrides com. Implements com. Ticker#read() ticks for when this entry becomes refreshable.
|
| refreshableAt | back to summary |
|---|---|
| pack-priv final long refreshableAt | |
| CompleteEntry | back to summary |
|---|---|
| pack-priv CompleteEntry(K key, V value, long snapshot, int weight, long expiresAt, long refreshableAt) | |
| refreshableAt | back to summary |
|---|---|
| public long refreshableAt() Overrides com. Implements com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | expiresAt()
Overrides com. Implements com. Ticker#read() ticks for when this entry expires.
|
| expiresAt | back to summary |
|---|---|
| pack-priv final long expiresAt | |
| ExpirableEntry | back to summary |
|---|---|
| pack-priv ExpirableEntry(K key, V value, long snapshot, long expiresAt) | |
| expiresAt | back to summary |
|---|---|
| public long expiresAt() Overrides com. Implements com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | expiresAt()
Overrides com. Implements com. Ticker#read() ticks for when this entry expires.
|
| expiresAt | back to summary |
|---|---|
| pack-priv final long expiresAt | |
| ExpirableWeightedEntry | back to summary |
|---|---|
| pack-priv ExpirableWeightedEntry(K key, V value, long snapshot, int weight, long expiresAt) | |
| expiresAt | back to summary |
|---|---|
| public long expiresAt() Overrides com. Implements com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | refreshableAt()
Overrides com. Implements com. Ticker#read() ticks for when this entry becomes refreshable.
|
| refreshableAt | back to summary |
|---|---|
| pack-priv final long refreshableAt | |
| RefreshableExpirableEntry | back to summary |
|---|---|
| pack-priv RefreshableExpirableEntry(K key, V value, long snapshot, long expiresAt, long refreshableAt) | |
| refreshableAt | back to summary |
|---|---|
| public long refreshableAt() Overrides com. Implements com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | weight()
Overrides com. Implements com. |
| weight | back to summary |
|---|---|
| pack-priv final int weight | |
| WeightedEntry | back to summary |
|---|---|
| pack-priv WeightedEntry(K key, V value, long snapshot, int weight) | |
| weight | back to summary |
|---|---|
| public int weight() Overrides com. Implements com. Doc from com. Returns the entry's weight. If the cache was not configured with a maximum weight then this
value is always
| |