use of com.swiftmq.swiftlet.net.Connection in project swiftmq-ce by iitsoftware.
the class MQTTSwiftlet method performTimeAction.
public void performTimeAction() {
Connection[] c = (Connection[]) connections.toArray(new Connection[connections.size()]);
for (int i = 0; i < c.length; i++) {
MQTTConnection vc = (MQTTConnection) c[i].getUserObject();
vc.collect(lastCollect);
}
lastCollect = System.currentTimeMillis();
}
Aggregations