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

io.sbk.api.Worker Maven / Gradle / Ivy

/**
 * Copyright (c) KMG. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package io.sbk.api;

import io.perl.api.PerlChannel;
import io.sbk.params.Parameters;

/**
 * Abstract class for Writers and Readers.
 */
public abstract class Worker {
    public final int id;
    public final Parameters params;
    public final PerlChannel perlChannel;

    public Worker(int workerID, Parameters params, PerlChannel perlChannel) {
        this.id = workerID;
        this.params = params;
        this.perlChannel = perlChannel;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy