private static class Cache.CacheStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicBoolean |
clusterRejoinInProgress |
private Status |
status |
Modifier | Constructor and Description |
---|---|
private |
CacheStatus() |
Modifier and Type | Method and Description |
---|---|
boolean |
canInitialize()
Returns true if cache can be initialized.
|
void |
changeState(Status newState)
Change state to the new state
|
void |
checkAlive(CacheConfiguration configuration) |
private void |
clusterRejoinComplete() |
private void |
clusterRejoinInProgress() |
Status |
getStatus()
Get the current state
|
boolean |
isAlive()
Returns true if the cache is alive
|
boolean |
isShutdown()
Returns true if the cache has been disposed
|
boolean |
isUninitialized()
Returns true if the cache is uninitialized
|
private volatile Status status
private final java.util.concurrent.atomic.AtomicBoolean clusterRejoinInProgress
private void clusterRejoinComplete()
public void checkAlive(CacheConfiguration configuration)
private void clusterRejoinInProgress()
public boolean canInitialize()
public void changeState(Status newState)
newState
- statepublic Status getStatus()
public boolean isAlive()
public boolean isShutdown()
public boolean isUninitialized()