public class TaskRunnerWorkItem extends Object implements Comparable<TaskRunnerWorkItem>
Constructor and Description |
---|
TaskRunnerWorkItem(String taskId,
com.google.common.util.concurrent.ListenableFuture<TaskStatus> result) |
TaskRunnerWorkItem(String taskId,
com.google.common.util.concurrent.ListenableFuture<TaskStatus> result,
org.joda.time.DateTime createdTime,
org.joda.time.DateTime queueInsertionTime) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TaskRunnerWorkItem taskRunnerWorkItem) |
org.joda.time.DateTime |
getCreatedTime() |
org.joda.time.DateTime |
getQueueInsertionTime() |
com.google.common.util.concurrent.ListenableFuture<TaskStatus> |
getResult() |
String |
getTaskId() |
String |
toString() |
TaskRunnerWorkItem |
withQueueInsertionTime(org.joda.time.DateTime time) |
public TaskRunnerWorkItem(String taskId, com.google.common.util.concurrent.ListenableFuture<TaskStatus> result)
public TaskRunnerWorkItem(String taskId, com.google.common.util.concurrent.ListenableFuture<TaskStatus> result, org.joda.time.DateTime createdTime, org.joda.time.DateTime queueInsertionTime)
public String getTaskId()
public com.google.common.util.concurrent.ListenableFuture<TaskStatus> getResult()
public org.joda.time.DateTime getCreatedTime()
public org.joda.time.DateTime getQueueInsertionTime()
public TaskRunnerWorkItem withQueueInsertionTime(org.joda.time.DateTime time)
public int compareTo(TaskRunnerWorkItem taskRunnerWorkItem)
compareTo
in interface Comparable<TaskRunnerWorkItem>
Copyright © 2011–2015. All rights reserved.