Purple Code

com.purpletech.message.server
Class ProcessorCounter

java.lang.Object
  |
  +--com.purpletech.message.server.ProcessorCounter

public class ProcessorCounter
extends java.lang.Object

helps the processor threads count


Constructor Summary
ProcessorCounter()
           
ProcessorCounter(int avgSize)
           
 
Method Summary
 double getAverageTransit()
          returns average time in transit for messages delivered
 int getCount()
           
 void messageProcessed(Processor p, int transit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorCounter

public ProcessorCounter(int avgSize)

ProcessorCounter

public ProcessorCounter()
Method Detail

getAverageTransit

public double getAverageTransit()
returns average time in transit for messages delivered


messageProcessed

public void messageProcessed(Processor p,
                             int transit)

getCount

public int getCount()

Documentation generated March 5 2003