|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.qfs.lib.log.LogQueue
This is a queue specialized for LogEntries.
Log
Inner Class Summary | |
static class |
LogQueue.UnitTest
Test cases for the LogQueue class. |
Method Summary | |
void |
entriesProcessed()
Notify the LogQueue that popped entries have been processed and new ones may be accepted. |
int |
getQueueSize()
Get the size of the queue where it starts to either block or drop entries. |
boolean |
isDropOnOverflow()
Query whether the queue drops entries when it overflows. |
boolean |
isQueueing()
Get the queueing state of the LogQueue. |
LogEntry |
pop()
Pop an object from the front of the queue. |
LogEntry[] |
popAll()
Pop all elements from the Queue. |
void |
push(LogEntry object)
Push an object to the back of the queue. |
void |
setDropOnOverflow(boolean drop)
Set whether entries should be dropped when the queue overflows. |
void |
setQueueing(boolean queueing)
Set the queueing state of the LogQueue. |
void |
setQueueSize(int newsize)
Set the maximum size of the queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void push(LogEntry object)
object
- The object being pushed.public LogEntry pop()
public LogEntry[] popAll()
public void entriesProcessed()
public final boolean isQueueing()
public final void setQueueing(boolean queueing)
queueing
- The queueing state to set.public final int getQueueSize()
public void setQueueSize(int newsize)
newsize
- The new size of the queue.public final boolean isDropOnOverflow()
public void setDropOnOverflow(boolean drop)
drop
- Whether entries should be dropped.
|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |