public class AppenderControlArraySet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicReference<AppenderControl[]> |
appenderArray |
| Constructor and Description |
|---|
AppenderControlArraySet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(AppenderControl control)
Adds an AppenderControl to this set.
|
java.util.Map<java.lang.String,Appender> |
asMap()
Returns all Appenders as a Map.
|
AppenderControl[] |
clear()
Atomically sets the values to an empty array and returns the old array.
|
AppenderControl[] |
get()
Returns the underlying array.
|
boolean |
isEmpty() |
AppenderControl |
remove(java.lang.String name)
Removes the AppenderControl with the specific name and returns it (or
null if no such appender existed). |
private AppenderControl[] |
removeElementAt(int i,
AppenderControl[] array) |
private final java.util.concurrent.atomic.AtomicReference<AppenderControl[]> appenderArray
public boolean add(AppenderControl control)
control - The AppenderControl to add.public AppenderControl remove(java.lang.String name)
null if no such appender existed).name - The name of the AppenderControl to removenullprivate AppenderControl[] removeElementAt(int i, AppenderControl[] array)
public java.util.Map<java.lang.String,Appender> asMap()
public AppenderControl[] clear()
public boolean isEmpty()
public AppenderControl[] get()