public class JobHolder extends java.lang.Object implements JobHandler
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.Object |
attachment |
protected java.util.Map<java.lang.String,java.lang.String> |
data |
protected JobHandler |
handler |
protected IJobManager |
jobManager |
protected java.lang.String |
name |
protected Scheduled |
scheduled |
protected java.lang.String |
simpleName |
构造器和说明 |
---|
JobHolder(IJobManager jobManager,
java.lang.String name,
Scheduled scheduled,
JobHandler handler) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
getAttachment() |
java.util.Map<java.lang.String,java.lang.String> |
getData() |
JobHandler |
getHandler()
获取处理器
|
java.lang.String |
getName()
获取名字
|
Scheduled |
getScheduled()
获取计划
|
java.lang.String |
getSimpleName() |
void |
handle(Context ctx)
处理
|
void |
setAttachment(java.lang.Object attachment) |
void |
setData(java.util.Map<java.lang.String,java.lang.String> data) |
JobHolder |
simpleName(java.lang.String simpleName) |
protected final java.lang.String name
protected final Scheduled scheduled
protected final JobHandler handler
protected final IJobManager jobManager
protected java.lang.String simpleName
protected java.util.Map<java.lang.String,java.lang.String> data
protected java.lang.Object attachment
public JobHolder(IJobManager jobManager, java.lang.String name, Scheduled scheduled, JobHandler handler)
public JobHolder simpleName(java.lang.String simpleName)
public java.lang.String getSimpleName()
public java.lang.String getName()
public Scheduled getScheduled()
public JobHandler getHandler()
public void setData(java.util.Map<java.lang.String,java.lang.String> data)
public java.util.Map<java.lang.String,java.lang.String> getData()
public java.lang.Object getAttachment()
public void setAttachment(java.lang.Object attachment)
public void handle(Context ctx) throws java.lang.Throwable
handle
在接口中 JobHandler
java.lang.Throwable