All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alogic.doer.core.TaskQueue Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.alogic.doer.core;

import com.alogic.timer.core.TaskStateListener;

/**
 * 任务队列
 * 
 * @author duanyy
 *
 */
public interface TaskQueue extends TaskDispatcher,TaskStateListener {
	
	/**
	 * 获取队列的ID
	 * @return id
	 */
	public String id();
	
	/**
	 * 请求任务
	 * 
	 * 

向队列请求任务,本方法将阻塞直至有任务分发给该doer或者时间超时。 * * @param doer 任务处理人 */ public void askForTask(TaskDispatcher doer,long timeout); /** * 获取指定任务的报告 * * @param id 任务ID * @return 任务报告 */ public TaskReport getTaskReport(String id); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy