@Addresses(value={"/subsystem=logging/async-handler=*","/subsystem=logging/logging-profile=*/async-handler=*"}) public class AsyncHandler<T extends AsyncHandler<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AsyncHandler.OverflowAction |
Constructor and Description |
---|
AsyncHandler(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Boolean |
enabled()
If set to true the handler is enabled and functioning as normal, if set
to false the handler is ignored when processing log messages.
|
T |
enabled(Boolean value)
If set to true the handler is enabled and functioning as normal, if set
to false the handler is ignored when processing log messages.
|
String |
filterSpec()
A filter expression value to define a filter.
|
T |
filterSpec(String value)
A filter expression value to define a filter.
|
String |
getKey() |
Level |
level()
The log level specifying which message levels will be logged by this
handler.
|
T |
level(Level value)
The log level specifying which message levels will be logged by this
handler.
|
T |
level(String level)
Deprecated.
|
AsyncHandler.OverflowAction |
overflowAction()
Specify what action to take when the overflowing.
|
T |
overflowAction(AsyncHandler.OverflowAction value)
Specify what action to take when the overflowing.
|
T |
overflowAction(String overflowAction)
Deprecated.
|
Integer |
queueLength()
The queue length to use before flushing writing
|
T |
queueLength(Integer value)
The queue length to use before flushing writing
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
T |
subhandler(String value)
The Handlers associated with this async handler.
|
List<String> |
subhandlers()
The Handlers associated with this async handler.
|
T |
subhandlers(List<String> value)
The Handlers associated with this async handler.
|
T |
subhandlers(String... args)
The Handlers associated with this async handler.
|
public AsyncHandler(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="enabled") public Boolean enabled()
public T enabled(Boolean value)
@ModelNodeBinding(detypedName="filter-spec") public String filterSpec()
public T filterSpec(String value)
@Deprecated public T level(String level)
@ModelNodeBinding(detypedName="level") public Level level()
public T level(Level value)
@Deprecated public T overflowAction(String overflowAction)
@ModelNodeBinding(detypedName="overflow-action") public AsyncHandler.OverflowAction overflowAction()
public T overflowAction(AsyncHandler.OverflowAction value)
@ModelNodeBinding(detypedName="queue-length") public Integer queueLength()
@ModelNodeBinding(detypedName="subhandlers") public List<String> subhandlers()
public T subhandlers(List<String> value)
Copyright © 2016 JBoss by Red Hat. All rights reserved.