com.davfx.ninio.common.CountingReadyFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ninio Show documentation
Show all versions of ninio Show documentation
A Java NIO HTTP client/server as light as possible
The newest version!
package com.davfx.ninio.common;
public final class CountingReadyFactory implements ReadyFactory {
private final Count readCount;
private final Count writeCount;
private final ReadyFactory wrappee;
public CountingReadyFactory(Count readCount, Count writeCount, ReadyFactory wrappee) {
this.readCount = readCount;
this.writeCount = writeCount;
this.wrappee = wrappee;
}
@Override
public Ready create(Queue queue) {
return new CountingReady(readCount, writeCount, wrappee.create(queue));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy