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

org.dataloader.stats.context.IncrementBatchLoadCountByStatisticsContext Maven / Gradle / Ivy

There is a newer version: 2022-09-12T23-25-35-08559ba
Show newest version
package org.dataloader.stats.context;

import java.util.Collections;
import java.util.List;

public class IncrementBatchLoadCountByStatisticsContext {

    private final List keys;
    private final List callContexts;

    public IncrementBatchLoadCountByStatisticsContext(List keys, List callContexts) {
        this.keys = keys;
        this.callContexts = callContexts;
    }

    public IncrementBatchLoadCountByStatisticsContext(K key, Object callContext) {
        this(Collections.singletonList(key), Collections.singletonList(callContext));
    }

    public List getKeys() {
        return keys;
    }

    public List getCallContexts() {
        return callContexts;
    }
}