|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.log.XQueueLogWriter
public class XQueueLogWriter
A background log writer using a queue to write to the output stream
| Field Summary | |
|---|---|
protected java.util.concurrent.BlockingQueue |
msqQ
|
protected boolean |
useErrorStream
|
| Constructor Summary | |
|---|---|
XQueueLogWriter()
Construct a new writer |
|
| Method Summary | |
|---|---|
void |
run()
|
void |
setStream(boolean isError)
Set the use of the error stream |
void |
writeLine(java.lang.String message)
Write a line to the log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.concurrent.BlockingQueue msqQ
protected boolean useErrorStream
| Constructor Detail |
|---|
public XQueueLogWriter()
| Method Detail |
|---|
public void setStream(boolean isError)
setStream in interface XLogWriterpublic void writeLine(java.lang.String message)
writeLine in interface XLogWritermessage - the line to writepublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||