All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.davfx.ninio.common.CountingReadyFactory Maven / Gradle / Ivy

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