CacheManager or Cache.
ehcache historically used int values for status. This is unsuitable for third party use thus this class. Methods are provided to convert from the int status values to enum values and vice versa.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private static final long | |
| public static final Status | STATUS_ALIVE
The cache is alive. |
| public static final Status | STATUS_SHUTDOWN
The cache is shudown. |
| public static final Status | STATUS_UNINITIALISED
The cache is uninitialised. |
| private static final Status[] |
| Modifier and Type | Method and Description |
|---|---|
| public static Status | |
| public boolean | Returns: true if this object is the same as the obj
argument; false otherwise.the reference object with which to compare. object)Overrides java. |
| public boolean | |
| public int | Returns: a hash code value for this object.Overrides java. |
| public int | Returns: the int value of this status.Returns the int value of status, for backward compatibility with ehcache versions below 1.2 |
| public String | Returns: a string representation of the object.Overrides java. |
| intValue | back to summary |
|---|---|
| private final int intValue | |
| name | back to summary |
|---|---|
| private final String name | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| STATUS_ALIVE | back to summary |
|---|---|
| public static final Status STATUS_ALIVE The cache is alive. It can be used. | |
| STATUS_SHUTDOWN | back to summary |
|---|---|
| public static final Status STATUS_SHUTDOWN The cache is shudown. It cannot be used. | |
| STATUS_UNINITIALISED | back to summary |
|---|---|
| public static final Status STATUS_UNINITIALISED The cache is uninitialised. It cannot be used. | |
| STATUSES | back to summary |
|---|---|
| private static final Status[] STATUSES | |
| Status | back to summary |
|---|---|
| private Status(int intValue, String name) | |
| convertIntToStatus | back to summary |
|---|---|
public static Status convertIntToStatus(int statusAsInt) throws IllegalArgumentException
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Indicates whether some other object is "equal to" this one.
The
Object implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x and
y, this method returns true if and only
if x and y refer to the same object
(x == y has the value true).
Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Status status) Equality checker when the comparison object is of the same type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for Status. It is the underlying int value of the status.
| |
| intValue | back to summary |
|---|---|
| public int intValue() Returns the int value of status, for backward compatibility with ehcache versions below 1.2
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the object. In general, the
The getClass().getName() + '@' + Integer.toHexString(hashCode())
| |