public class ProcessingThreads<E extends WorkerThread> extends Object
Constructor and Description |
---|
ProcessingThreads(E worker,
int numWorkerThreads,
int maxQueueSize,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
addItem(XMPPProcessorIfc processor,
Packet packet,
XMPPResourceConnection conn) |
long |
getAverageProcessingTime() |
long |
getDroppedPackets() |
String |
getName() |
int |
getTotalQueueSize() |
int |
getTotalRuns() |
void |
shutdown() |
public ProcessingThreads(E worker, int numWorkerThreads, int maxQueueSize, String name) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public boolean addItem(XMPPProcessorIfc processor, Packet packet, XMPPResourceConnection conn)
public long getAverageProcessingTime()
public long getDroppedPackets()
public String getName()
public int getTotalQueueSize()
public int getTotalRuns()
public void shutdown()
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.