|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.log.QueueLogWriter
public class QueueLogWriter
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 | |
|---|---|
QueueLogWriter()
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 QueueLogWriter()
| Method Detail |
|---|
public void setStream(boolean isError)
setStream in interface LogWriterpublic void writeLine(java.lang.String message)
writeLine in interface LogWritermessage - 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 | ||||||||