use of de.dytanic.cloudnet.lib.utility.Quad in project CloudNet by Dytanic.
the class Wrapper method getUsedMemoryAndWaitings.
public int getUsedMemoryAndWaitings() {
AtomicInteger integer = new AtomicInteger(getUsedMemory());
CollectionWrapper.iterator(this.waitingServices.values(), new Runnabled<Quad<Integer, Integer, ServiceId, Template>>() {
@Override
public void run(Quad<Integer, Integer, ServiceId, Template> obj) {
integer.addAndGet(obj.getSecond());
}
});
return integer.get();
}
Aggregations