public class AppenderControlArraySet extends Object
Constructor and Description |
---|
AppenderControlArraySet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(AppenderControl control)
Adds an AppenderControl to this set.
|
Map<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(String name)
Removes the AppenderControl with the specific name and returns it (or
null if no such appender existed). |
String |
toString() |
public boolean add(AppenderControl control)
control
- The AppenderControl to add.public AppenderControl remove(String name)
null
if no such appender existed).name
- The name of the AppenderControl to removenull
public Map<String,Appender> asMap()
public AppenderControl[] clear()
public boolean isEmpty()
public AppenderControl[] get()
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.