| Modifier and Type | Field and Description |
|---|---|
| public static final RemovalCause | COLLECTED
The entry was removed automatically because its key or value was garbage-collected. |
| public static final RemovalCause | EXPIRED
The entry's expiration timestamp has passed. |
| public static final RemovalCause | EXPLICIT
The entry was manually removed by the user. |
| public static final RemovalCause | REPLACED
The entry itself was not actually removed, but its value was replaced by the user. |
| public static final RemovalCause | SIZE
The entry was evicted due to size constraints. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RemovalCause | |
| public static RemovalCause[] | |
| public abstract boolean | Returns: if the entry was automatically removed due to evictionReturns |
| COLLECTED | back to summary |
|---|---|
| public static final RemovalCause COLLECTED The entry was removed automatically because its key or value was garbage-collected. This
can occur when using | |
| EXPIRED | back to summary |
|---|---|
| public static final RemovalCause EXPIRED The entry's expiration timestamp has passed. This can occur when using
| |
| EXPLICIT | back to summary |
|---|---|
| public static final RemovalCause EXPLICIT The entry was manually removed by the user. This can result from the user invoking any of the following methods on the cache or map view. A manual removal may also be performed through the key, value, or entry collections views by the user invoking any of the following methods. | |
| REPLACED | back to summary |
|---|---|
| public static final RemovalCause REPLACED The entry itself was not actually removed, but its value was replaced by the user. This can result from the user invoking any of the following methods on the cache or map view. | |
| SIZE | back to summary |
|---|---|
| public static final RemovalCause SIZE The entry was evicted due to size constraints. This can occur when using
| |
| RemovalCause | back to summary |
|---|---|
| private RemovalCause() | |
| valueOf | back to summary |
|---|---|
| public static RemovalCause valueOf(String name) | |
| values | back to summary |
|---|---|
| public static RemovalCause[] values() | |
| wasEvicted | back to summary |
|---|---|
| public abstract boolean wasEvicted() Returns
| |