com.netflix.eureka.util.batcher.TaskHolder Maven / Gradle / Ivy
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