public abstract class AbstractSyslogWriter extends Object implements Runnable, Serializable
When used in "threaded" mode (see TCPNetSyslogConfig for the option), a queuing mechanism is used (via LinkedList).
Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.
| Modifier and Type | Field and Description |
|---|---|
protected List |
queuedMessages |
protected boolean |
shutdown |
protected AbstractSyslog |
syslog |
protected AbstractSyslogConfigIF |
syslogConfig |
protected Thread |
thread |
| Constructor and Description |
|---|
AbstractSyslogWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
flush() |
boolean |
hasThread() |
void |
initialize(AbstractSyslog abstractSyslog) |
void |
queue(int level,
byte[] message) |
void |
run() |
protected abstract void |
runCompleted() |
void |
setThread(Thread thread) |
abstract void |
shutdown() |
abstract void |
write(byte[] message) |
protected AbstractSyslog syslog
protected List queuedMessages
protected Thread thread
protected AbstractSyslogConfigIF syslogConfig
protected boolean shutdown
public void initialize(AbstractSyslog abstractSyslog)
public void queue(int level,
byte[] message)
public void setThread(Thread thread)
public boolean hasThread()
public abstract void write(byte[] message)
public abstract void flush()
public abstract void shutdown()
protected abstract void runCompleted()
Copyright © 2017. All rights reserved.