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

com.netflix.eureka.util.batcher.TaskHolder Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package com.netflix.eureka.util.batcher;

/**
 * @author Tomasz Bak
 */
class TaskHolder {

    private final ID id;
    private final T task;
    private final long expiryTime;
    private final long submitTimestamp;

    TaskHolder(ID id, T task, long expiryTime) {
        this.id = id;
        this.expiryTime = expiryTime;
        this.task = task;
        this.submitTimestamp = System.currentTimeMillis();
    }

    public ID getId() {
        return id;
    }

    public T getTask() {
        return task;
    }

    public long getExpiryTime() {
        return expiryTime;
    }

    public long getSubmitTimestamp() {
        return submitTimestamp;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy