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

com.yahoo.container.protect.TimeoutCollector Maven / Gradle / Ivy

// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.protect;

import com.yahoo.concurrent.ThreadLocalDirectory.Updater;

/**
 * Allocator and glue for sampling timeouts in SearchHandler.
 *
 * @author Steinar Knutsen
 * @deprecated this is not in use and will be removed in the next major release
 */
@Deprecated
public final class TimeoutCollector implements Updater {

    @Override
    public TimeoutRate createGenerationInstance(TimeoutRate previous) {
        return new TimeoutRate();
    }

    @Override
    public TimeoutRate update(TimeoutRate current, Boolean x) {
        current.addQuery(x);
        return current;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy