@Experimental public abstract class CacheElement extends Object implements Identifiable<String>, Serializable, JsonSerializable
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER |
protected List<String> |
groups |
Constructor and Description |
---|
CacheElement() |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String group) |
static <T extends Identifiable> |
exists(List<T> list,
String id) |
static <T extends Identifiable> |
findElement(List<T> list,
String id) |
String |
getConfigGroup()
this returns a non-null value
for cluster level element, it will return "cluster" for sure.
|
String |
getGroup()
this returns the first group set by the user
if no group is set, this returns null
|
List<String> |
getGroups() |
static <T extends Identifiable> |
removeElement(List<T> list,
String id) |
void |
setGroup(String group) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public static final String CLUSTER
public static <T extends Identifiable> boolean exists(List<T> list, String id)
public static <T extends Identifiable> T findElement(List<T> list, String id)
public static <T extends Identifiable> void removeElement(List<T> list, String id)
public String getConfigGroup()
public String getGroup()
public void setGroup(String group)
public void addGroup(String group)