public class ThreadPool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Hashtable<java.lang.String,MQTTSubscriber> |
subscriberTable |
Constructor and Description |
---|
ThreadPool() |
Modifier and Type | Method and Description |
---|---|
int |
availablePublisher() |
int |
availableSubscriber() |
MQTTSubscriber |
getSubscriber(java.lang.String ipandport,
java.lang.String threadName,
java.lang.String topic,
int qos) |
boolean |
returnSubscriberThreadToPool(MQTTSubscriber t) |
public java.util.Hashtable<java.lang.String,MQTTSubscriber> subscriberTable
public MQTTSubscriber getSubscriber(java.lang.String ipandport, java.lang.String threadName, java.lang.String topic, int qos)
public boolean returnSubscriberThreadToPool(MQTTSubscriber t)
t,
- a returned threadpublic int availableSubscriber()
public int availablePublisher()