tigase.util
Class ProcessingThreads<E extends WorkerThread>

java.lang.Object
  extended by tigase.util.ProcessingThreads<E>
Type Parameters:
E -

public class ProcessingThreads<E extends WorkerThread>
extends Object

Created: Apr 21, 2009 8:50:50 PM

Version:
$Rev: 2090 $
Author:
Artur Hefczyc

Constructor Summary
ProcessingThreads(E worker, int numQueues, int numWorkerThreads, int maxQueueSize, String name)
          Constructs ...
 
Method Summary
 boolean addItem(Packet packet, XMPPResourceConnection conn)
          Method description
 long getAverageProcessingTime()
          Method description
 long getDroppedPackets()
          Method description
 String getName()
          Method description
 int getTotalQueueSize()
          Method description
 int getTotalRuns()
          Method description
 E getWorkerThread()
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingThreads

public ProcessingThreads(E worker,
                         int numQueues,
                         int numWorkerThreads,
                         int maxQueueSize,
                         String name)
Constructs ...

Parameters:
worker -
numQueues -
numWorkerThreads -
maxQueueSize -
name -
Method Detail

addItem

public boolean addItem(Packet packet,
                       XMPPResourceConnection conn)
Method description

Parameters:
packet -
conn -
Returns:

getAverageProcessingTime

public long getAverageProcessingTime()
Method description

Returns:

getDroppedPackets

public long getDroppedPackets()
Method description

Returns:

getName

public String getName()
Method description

Returns:

getTotalQueueSize

public int getTotalQueueSize()
Method description

Returns:

getTotalRuns

public int getTotalRuns()
Method description

Returns:

getWorkerThread

public E getWorkerThread()
Method description

Returns:


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.