com.voidsearch.voidbase.storage.jobqueue
Class JobRequest
java.lang.Object
com.voidsearch.voidbase.storage.jobqueue.JobRequest
- All Implemented Interfaces:
- java.lang.Comparable
public abstract class JobRequest
- extends java.lang.Object
- implements java.lang.Comparable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobRequest
public JobRequest()
equals
public boolean equals(JobRequest req)
compareTo
public int compareTo(java.lang.Object req)
throws java.lang.ClassCastException
- Specified by:
compareTo in interface java.lang.Comparable
- Throws:
java.lang.ClassCastException
getID
public int getID()
getPriority
public int getPriority()
getTimestamp
public long getTimestamp()
setTimeout
public void setTimeout(long timeout)
getTimeout
public long getTimeout()
isExpired
public boolean isExpired()
execute
public abstract JobResult execute()
expired
public abstract JobResult expired()
Copyright © 2009. All Rights Reserved.