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