use of java.util.function.ObjLongConsumer in project neo4j by neo4j.
the class ConfigurableIOLimiterTest method createIOLimiter.
private void createIOLimiter(Config config) {
pauseNanosCounter = new AtomicLong();
ObjLongConsumer<Object> pauseNanos = (blocker, nanos) -> pauseNanosCounter.getAndAdd(nanos);
limiter = new ConfigurableIOLimiter(config, pauseNanos);
}
Aggregations