public class WorkerStatus extends Object implements Serializable
| Constructor and Description |
|---|
WorkerStatus()
No-arg constructor
|
WorkerStatus(WorkerStatus origStatus)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Job |
getPayload() |
String |
getQueue() |
Date |
getRunAt() |
int |
hashCode() |
boolean |
isPaused() |
void |
setPaused(boolean paused)
Sets whether the worker is paused.
|
void |
setPayload(Job payload)
Set the job.
|
void |
setQueue(String queue)
Set which queue the current job came from.
|
void |
setRunAt(Date runAt)
Set when the Worker started on the current job.
|
public WorkerStatus()
public WorkerStatus(WorkerStatus origStatus)
origStatus - the status to start fromIllegalArgumentException - if the origStatus is nullpublic Date getRunAt()
public void setRunAt(Date runAt)
runAt - when the Worker started on the current jobpublic String getQueue()
public void setQueue(String queue)
queue - which queue the current job came frompublic Job getPayload()
public void setPayload(Job payload)
payload - the jobpublic boolean isPaused()
public void setPaused(boolean paused)
paused - whether the worker is pausedCopyright © 2011-2013. All Rights Reserved.