net.spy.log
Class SpyLogQueue

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.log.SpyLogQueue

public class SpyLogQueue
extends SpyObject

This class performs the actual queue management for the SpyLog system. It should probably not be referenced directly.


Constructor Summary
SpyLogQueue(String name)
          Get a new SpyLogQueue with the given name.
 
Method Summary
 void addToQueue(SpyLogEntry e)
          Add a new item to a queue.
 Vector flush()
          Flush the current log entries -- DO NOT CALL THIS.
 int size()
          Return the current size of the queue.
 void waitForQueue(long ms)
          Wait for notification of an addition in the queue.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpyLogQueue

public SpyLogQueue(String name)
Get a new SpyLogQueue with the given name.

Method Detail

addToQueue

public void addToQueue(SpyLogEntry e)
Add a new item to a queue.

Parameters:
e - item to be added

waitForQueue

public void waitForQueue(long ms)
Wait for notification of an addition in the queue.

Parameters:
ms - The maximum number of milliseconds to wait.

size

public int size()
Return the current size of the queue. This may change before you can do anything about it, so use it wisely.


flush

public Vector flush()
Flush the current log entries -- DO NOT CALL THIS. This is for SpyLogFlushers only.