public enum CacheStatus extends Enum<CacheStatus>
create()
, start()
, stop()
and destroy()
) might be in.Enum Constant and Description |
---|
CREATED
The
create() method has been completed but
start() has not been called. |
CREATING
The
create() method has been called but not yet completed. |
DESTROYED
The
destroy() method has completed. |
DESTROYING
The
destroy() method has been called but has not yet completed. |
FAILED
A failure occurred during the execution of
create() ,
start() , stop() or destroy() . |
INSTANTIATED
Object has been instantiated, but create() has not been called.
|
STARTED
The
start() method has completed. |
STARTING
The
start() method has been called but has not yet completed. |
STOPPED
The
stop() method has completed but destroy()
has not yet been called. |
STOPPING
The
stop() method has been called but has not yet completed. |
Modifier and Type | Method and Description |
---|---|
boolean |
allowInvocations() |
boolean |
createAllowed() |
boolean |
destroyAllowed() |
boolean |
needCreateBeforeStart() |
boolean |
needStopBeforeDestroy() |
boolean |
needToDestroyFailedCache() |
boolean |
startAllowed() |
boolean |
stopAllowed() |
static CacheStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheStatus INSTANTIATED
public static final CacheStatus CREATING
create()
method has been called but not yet completed.public static final CacheStatus CREATED
create()
method has been completed but
start()
has not been called.public static final CacheStatus STARTING
start()
method has been called but has not yet completed.public static final CacheStatus STARTED
start()
method has completed.public static final CacheStatus STOPPING
stop()
method has been called but has not yet completed.public static final CacheStatus STOPPED
stop()
method has completed but destroy()
has not yet been called. Conceptually equivalent to CREATED
.public static final CacheStatus DESTROYING
destroy()
method has been called but has not yet completed.public static final CacheStatus DESTROYED
destroy()
method has completed.
Conceptually equivalent to INSTANTIATED
.public static final CacheStatus FAILED
create()
,
start()
, stop()
or destroy()
.
The next logical transition is to call destroy()
.public static CacheStatus[] values()
for (CacheStatus c : CacheStatus.values()) System.out.println(c);
public static CacheStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean createAllowed()
public boolean needToDestroyFailedCache()
public boolean startAllowed()
public boolean needCreateBeforeStart()
public boolean stopAllowed()
public boolean destroyAllowed()
public boolean needStopBeforeDestroy()
public boolean allowInvocations()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.