Class ResultJobListener
- java.lang.Object
-
- risesoft.data.transfer.core.listener.impl.ResultJobListener
-
- All Implemented Interfaces:
JobListener
public class ResultJobListener extends Object implements JobListener
获取任务返回值的监听器- Author:
- lb
- Date:
- 2024年1月26日
-
-
Constructor Summary
Constructors Constructor Description ResultJobListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(Communication communication)CommunicationgetCommunication()获取统计对象,注意此时没有统计 对象时会等待JobContextgetJobContext()获取任务执行的上下文对象StringgetMessage()获取任务信息booleanisEnd()是否结束booleanisSuccess()是否成功voidsetJobContext(JobContext jobContext)设置 任务上下文对象,设置之后可以操作一些任务上下文方法
-
-
-
Method Detail
-
setJobContext
public void setJobContext(JobContext jobContext)
设置 任务上下文对象,设置之后可以操作一些任务上下文方法- Parameters:
jobContext-
-
getJobContext
public JobContext getJobContext()
获取任务执行的上下文对象- Returns:
-
end
public void end(Communication communication)
- Specified by:
endin interfaceJobListener
-
isEnd
public boolean isEnd()
是否结束- Returns:
-
isSuccess
public boolean isSuccess()
是否成功- Returns:
-
getCommunication
public Communication getCommunication()
获取统计对象,注意此时没有统计 对象时会等待- Returns:
-
getMessage
public String getMessage()
获取任务信息- Returns:
-
-